summaryrefslogtreecommitdiffstats
path: root/apps/files/css/detailsView.css
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-11 15:26:47 +0200
committerRobin Appelman <icewind@owncloud.com>2015-09-15 14:32:07 +0200
commit98966329bfc67030db8e3088ddd4362390a1b651 (patch)
treed838e1bf449437f4cb44cc98140f50c9e4305d39 /apps/files/css/detailsView.css
parenta7346066495b5831293ef85df2319f921ec9185b (diff)
downloadnextcloud-server-98966329bfc67030db8e3088ddd4362390a1b651.tar.gz
nextcloud-server-98966329bfc67030db8e3088ddd4362390a1b651.zip
crop to the center for landscape images
Diffstat (limited to 'apps/files/css/detailsView.css')
-rw-r--r--apps/files/css/detailsView.css6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/css/detailsView.css b/apps/files/css/detailsView.css
index ad9c50b8354..2de4093805b 100644
--- a/apps/files/css/detailsView.css
+++ b/apps/files/css/detailsView.css
@@ -34,13 +34,17 @@
display:block;
height: 250px;
background-repeat: no-repeat;
- background-position: 50% top;
+ background-position: center;
background-size: 100%;
float: none;
margin: 0;
}
#app-sidebar .image.portrait .thumbnail {
+ background-position: 50% top;
+}
+
+#app-sidebar .image.portrait .thumbnail {
background-size: contain;
}