summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-07-04 17:38:26 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-07-04 17:38:26 +0200
commitdd337597b35b1fc70441e271a3eb560385da18a6 (patch)
treed538cba91adb454e89b369659c17ce6d675fec49 /apps
parent2e5e0c157d60d3fb2a059af355816e692c7ecd36 (diff)
downloadnextcloud-server-dd337597b35b1fc70441e271a3eb560385da18a6.tar.gz
nextcloud-server-dd337597b35b1fc70441e271a3eb560385da18a6.zip
for text use max-height to trim whitespace
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/sidebarpreviewtext.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/sidebarpreviewtext.js b/apps/files/js/sidebarpreviewtext.js
index de264ed1e56..5af17bd5551 100644
--- a/apps/files/js/sidebarpreviewtext.js
+++ b/apps/files/js/sidebarpreviewtext.js
@@ -29,7 +29,7 @@
var $textPreview = $('<pre/>').text(content);
$thumbnailDiv.children('.stretcher').remove();
$thumbnailDiv.append($textPreview);
- $thumbnailContainer.height(previewHeight);
+ $thumbnailContainer.css("max-height", previewHeight);
}, function () {
fallback();
});