Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent all interraction with content preview if hideDownload is enabled #32343

Closed
wants to merge 1 commit into from
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
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;
}
}