Skip to content

Commit 50e5320

Browse files
authored
Merge pull request #23637 from nextcloud/backport/23630/stable19
[stable19] Bring back the restore share button
2 parents bbc88ad + 2981961 commit 50e5320

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

apps/files/css/files.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,23 @@ table td.selection {
538538
cursor: default !important;
539539
}
540540

541+
/*
542+
* Make the disabled link look not like a link in file list rows
543+
*/
544+
#fileList a.name.disabled {
545+
* {
546+
cursor: default;
547+
}
548+
549+
a, a * {
550+
cursor: pointer;
551+
}
552+
553+
&:focus {
554+
background: none;
555+
}
556+
}
557+
541558
a.action > img {
542559
height: 16px;
543560
width: 16px;

apps/files/js/filelist.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,9 +1561,7 @@
15611561
"href": linkUrl
15621562
});
15631563
if (this._defaultFileActionsDisabled) {
1564-
linkElem = $('<p></p>').attr({
1565-
"class": "name"
1566-
})
1564+
linkElem.addClass('disabled');
15671565
}
15681566

15691567
linkElem.append('<div class="thumbnail-wrapper"><div class="thumbnail" style="background-image:url(' + icon + ');"></div></div>');

0 commit comments

Comments
 (0)