Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prevent all interraction with content preview if hideDownload is enabled
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed May 12, 2022
commit d00ede0ef7e7a3c31eff52c1c5d38eb68d48f889
25 changes: 24 additions & 1 deletion apps/files_sharing/css/public.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ thead {

// hide the download entry on the menu
// on public share when NOT on mobile
@media only screen and (min-width: $breakpoint-mobile + 1) {
@media only screen and (min-width: ($breakpoint-mobile + 1)) {
#body-public {
.header-right {
#header-actions-menu {
Expand All @@ -226,3 +226,26 @@ thead {
}
}
}

// If hide download is enabled we prevent any mouse interaction
input[name="hideDownload"][value="true"] ~ #files-public-content #preview {
pointer-events: none !important;
user-select: none !important;

&::before {
content: '';
position: absolute;
z-index: 999999;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
}

@media print {
// If hide download is enabled, we prevent printing
input[name="hideDownload"][value="true"] ~ #files-public-content {
display: none;
}
}