1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Prevent .visibleMediumView from overriding already hidden elements (issue 18704, PR 18596 follow-up)

*Please note:* As a general rule we probably don't need to fix things affecting *custom* implementations of the default viewer, but in this case a "targeted" fix seem possible that shouldn't (famous last words) break anything else.

Ensure that the `.visibleMediumView` class, which is used when the viewer becomes narrow, cannot override the `display`-value for DOM elements that are being *explicitly* hidden either through the associated attribute or class.
This commit is contained in:
Jonas Jenwald 2024-09-08 10:47:18 +02:00
parent 5d0c82cf05
commit b681ea6fd9

View file

@ -1581,7 +1581,7 @@ dialog :link {
#outerContainer .hiddenMediumView {
display: none !important;
}
#outerContainer .visibleMediumView {
#outerContainer .visibleMediumView:not(.hidden, [hidden]) {
display: inherit !important;
}
}