summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2015-08-25 17:08:34 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2015-08-25 17:08:34 +0200
commita262be514100c5ce303601c4c3f928525d50d588 (patch)
tree7b2c71e69d045032dfa16661affea708640df892
parent1efbc993650938ad961285af12b3164654bf8114 (diff)
parentcc898cf346cb956d6ee73149cf5ebcbea55ef8d6 (diff)
downloadnextcloud-server-a262be514100c5ce303601c4c3f928525d50d588.tar.gz
nextcloud-server-a262be514100c5ce303601c4c3f928525d50d588.zip
Merge pull request #18550 from owncloud/mobile-shared-style
fix being able to distinguish shared items on mobile
-rw-r--r--apps/files/css/mobile.css12
-rw-r--r--core/js/share.js4
2 files changed, 9 insertions, 7 deletions
diff --git a/apps/files/css/mobile.css b/apps/files/css/mobile.css
index dd8244a2913..635c24c4168 100644
--- a/apps/files/css/mobile.css
+++ b/apps/files/css/mobile.css
@@ -32,6 +32,12 @@ table td.filename .nametext {
width: 100%;
}
+/* show share action of shared items darker to distinguish from non-shared */
+#fileList a.action.permanent.shared-style {
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)" !important;
+ filter: alpha(opacity=70) !important;
+ opacity: .7 !important;
+}
/* always show actions on mobile, not only on hover */
#fileList a.action,
#fileList a.action.action-menu.permanent {
@@ -40,12 +46,6 @@ table td.filename .nametext {
opacity: .2 !important;
display: inline !important;
}
-/* show share action of shared items darker to distinguish from non-shared */
-#fileList a.action.permanent {
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)" !important;
- filter: alpha(opacity=70) !important;
- opacity: .7 !important;
-}
#fileList a.action.action-menu img {
padding-left: 2px;
}
diff --git a/core/js/share.js b/core/js/share.js
index bf9250b3c3a..7e0d0b7a2d3 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -219,7 +219,7 @@ OC.Share={
return html;
},
/**
- * Loop over all recipients in the list and format them using
+ * Loop over all recipients in the list and format them using
* all kind of fancy magic.
*
* @param {String[]} recipients array of all the recipients
@@ -249,6 +249,7 @@ OC.Share={
var owner = $tr.attr('data-share-owner');
var shareFolderIcon;
var image = OC.imagePath('core', 'actions/share');
+ action.removeClass('shared-style');
// update folder icon
if (type === 'dir' && (hasShares || hasLink || owner)) {
if (hasLink) {
@@ -265,6 +266,7 @@ OC.Share={
// update share action text / icon
if (hasShares || owner) {
recipients = $tr.attr('data-share-recipients');
+ action.addClass('shared-style');
message = t('core', 'Shared');
// even if reshared, only show "Shared by"