mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
for text use max-height to trim whitespace
This commit is contained in:
parent
2e5e0c157d
commit
dd337597b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue