diff options
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r-- | apps/files_sharing/js/public.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index cf049411c9b..79bd0bb0c47 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -232,15 +232,13 @@ OCA.Sharing.PublicApp = { textDiv.appendTo('#imgframe'); var divHeight = textDiv.height(); if (data.length > 999) { - textDiv.append('</br></br><strong>(…)</strong>'); - divHeight += 50; + var ellipsis = $('<div/>').addClass('ellipsis'); + ellipsis.html('(…)'); + ellipsis.appendTo('#imgframe'); } if (divHeight > previewHeight) { textDiv.height(previewHeight); } - var watermark = $('<div/>').addClass('watermark'); - watermark.text('SAMPLE'); - watermark.appendTo('#imgframe'); }, _onDirectoryChanged: function (e) { |