From 884d2d7bc39070fa0d643fd2a97f1f5a5f356a99 Mon Sep 17 00:00:00 2001 From: Felix Heidecke Date: Thu, 17 Oct 2019 12:48:20 +0200 Subject: [PATCH] in share-tree icon --- apps/files/css/files.css | 21 +++++++++++++-------- apps/files/img/shareinfo.svg | 1 + apps/files/js/filelist.js | 2 +- 3 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 apps/files/img/shareinfo.svg diff --git a/apps/files/css/files.css b/apps/files/css/files.css index 1902f6b604e9..8e2e1bd3f3c7 100644 --- a/apps/files/css/files.css +++ b/apps/files/css/files.css @@ -512,7 +512,7 @@ table td.filename .uploadtext { } /* File checkboxes */ -html:not(.ie8) #fileList tr td.filename > .selectCheckBox + label:before { +#fileList tr td.filename > .selectCheckBox + label:before { opacity: 0; position: absolute; bottom: 4px; @@ -520,13 +520,18 @@ html:not(.ie8) #fileList tr td.filename > .selectCheckBox + label:before { z-index: 10; } -html.ie8 #fileList tr td.filename > .selectCheckBox { - filter: alpha(opacity=0); - opacity: 0; - float: left; - top: 0; - margin: 32px 0 4px 32px; - /* bigger clickable area doesn’t work in FF width:2.8em; height:2.4em;*/ +#fileList tr:not(:hover):not(.selected) td.filename .thumbnail.sharetree-item:after { + position: absolute; + display: block; + content: ''; + bottom: 0px; + right: -5px; + z-index: 10; + background-image: url(../img/shareinfo.svg); + width: 14px; + height: 14px; + background-repeat: no-repeat; + background-position: center; } /* Show checkbox when hovering, checked, or selected */ diff --git a/apps/files/img/shareinfo.svg b/apps/files/img/shareinfo.svg new file mode 100644 index 000000000000..d57051def255 --- /dev/null +++ b/apps/files/img/shareinfo.svg @@ -0,0 +1 @@ +shareinfo \ No newline at end of file diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 76a58b24770e..6e1969d4f25a 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1834,7 +1834,7 @@ self._chechPathHasShares().then(function(e) { if (e) { - $('tr[data-type="dir"] .thumbnail').css({'backgroundImage' : 'url(' + OC.MimeType.getIconUrl('dir-shared') + ')'}) + $('#fileList tr td.filename .thumbnail').addClass('sharetree-item') } }) }, 250)