diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css index 7aa898b489..fc78ced0b7 100644 --- a/apps/files_sharing/css/public.css +++ b/apps/files_sharing/css/public.css @@ -32,7 +32,7 @@ position: relative; text-align: left; white-space: pre-wrap; - overflow-y: auto; + overflow-y: hidden; height: auto; min-height: 200px; max-height: 800px; @@ -42,16 +42,10 @@ -moz-user-select: none; -ms-user-select: none; user-select: none; - z-index: 1; } -#imgframe .watermark { - color: #E3E3E3; - font-size: 75pt; - position: absolute; - width: 80%; - top: 100px; - z-index: 0; +#imgframe .ellipsis { + font-size: 1.2em; } /* fix multiselect bar offset on shared page */ diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index cf049411c9..79bd0bb0c4 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('

(…)'); - divHeight += 50; + var ellipsis = $('
').addClass('ellipsis'); + ellipsis.html('(…)'); + ellipsis.appendTo('#imgframe'); } if (divHeight > previewHeight) { textDiv.height(previewHeight); } - var watermark = $('
').addClass('watermark'); - watermark.text('SAMPLE'); - watermark.appendTo('#imgframe'); }, _onDirectoryChanged: function (e) {