summaryrefslogtreecommitdiffstats
path: root/web/sass-files
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-08-02 08:58:33 -0800
committerCorey Hulen <corey@hulen.com>2015-08-02 08:58:33 -0800
commit41f96636d6a92f622518271f9ea7dd66c8c84e47 (patch)
treeb9462b5385b505a0220a1df47e5efe64fd2d84d0 /web/sass-files
parent810c527fcbf5a9b4e32fe94e3ea00e20bddc020a (diff)
parentdad78514234029791ff02c9a0efd2cbacdac5280 (diff)
downloadchat-41f96636d6a92f622518271f9ea7dd66c8c84e47.tar.gz
chat-41f96636d6a92f622518271f9ea7dd66c8c84e47.tar.bz2
chat-41f96636d6a92f622518271f9ea7dd66c8c84e47.zip
Merge pull request #274 from mattermost/mm-1497
MM-1497 image thumbnails now scale appropriately so there is no whitespace
Diffstat (limited to 'web/sass-files')
-rw-r--r--web/sass-files/sass/partials/_files.scss7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/sass-files/sass/partials/_files.scss b/web/sass-files/sass/partials/_files.scss
index ea7548267..ddc5e98bb 100644
--- a/web/sass-files/sass/partials/_files.scss
+++ b/web/sass-files/sass/partials/_files.scss
@@ -129,7 +129,12 @@
height: 100%;
background-color: #FFF;
background-repeat: no-repeat;
- background-position: top left;
+ &.small {
+ background-position: center;
+ }
+ &.normal {
+ background-position: top left;
+ }
}
.post-image__thumbnail {
width: 50%;