Skip to content

Commit

Permalink
Remove overflow+watermark
Browse files Browse the repository at this point in the history
  • Loading branch information
oparoz authored and mmattel committed May 22, 2015
1 parent 6394e59 commit 2ac3042
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
12 changes: 3 additions & 9 deletions apps/files_sharing/css/public.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 */
Expand Down
8 changes: 3 additions & 5 deletions apps/files_sharing/js/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,13 @@ OCA.Sharing.PublicApp = {
textDiv.appendTo('#imgframe');
var divHeight = textDiv.height();
if (data.length > 999) {
textDiv.append('</br></br><strong>(&#133;)</strong>');
divHeight += 50;
var ellipsis = $('<div/>').addClass('ellipsis');
ellipsis.html('(&#133;)');
ellipsis.appendTo('#imgframe');
}
if (divHeight > previewHeight) {
textDiv.height(previewHeight);
}
var watermark = $('<div/>').addClass('watermark');
watermark.text('SAMPLE');
watermark.appendTo('#imgframe');
},

_onDirectoryChanged: function (e) {
Expand Down

0 comments on commit 2ac3042

Please sign in to comment.