diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-10-22 15:03:42 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-10-22 18:58:57 +0000 |
commit | d391e7fe02bf123d53ccb28f615fb1091f74038f (patch) | |
tree | edfd24c71c1420652a7748ddd8a07066a8ff1bb0 /apps | |
parent | 820881168daf2eb1d12431bff54582094eb9d124 (diff) | |
download | nextcloud-server-d391e7fe02bf123d53ccb28f615fb1091f74038f.tar.gz nextcloud-server-d391e7fe02bf123d53ccb28f615fb1091f74038f.zip |
Bring back the restore share button
Fix disabled default file action to still use an anchor element, as this
is used in many other places (and potentially apps).
Adjusted anchor style to not look like it's clickable and added extras
to make sure everything inside still looks clickable as before.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/css/files.scss | 17 | ||||
-rw-r--r-- | apps/files/js/filelist.js | 4 |
2 files changed, 18 insertions, 3 deletions
diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index e47e47d7f4b..c323ff9b51b 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -539,6 +539,23 @@ table td.selection { cursor: default !important; } +/* + * Make the disabled link look not like a link in file list rows + */ +#fileList a.name.disabled { + * { + cursor: default; + } + + a, a * { + cursor: pointer; + } + + &:focus { + background: none; + } +} + a.action > img { height: 16px; width: 16px; diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 5e6225a48e9..e157b91b04d 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1561,9 +1561,7 @@ "href": linkUrl }); if (this._defaultFileActionsDisabled) { - linkElem = $('<p></p>').attr({ - "class": "name" - }) + linkElem.addClass('disabled'); } linkElem.append('<div class="thumbnail-wrapper"><div class="thumbnail" style="background-image:url(' + icon + ');"></div></div>'); |