Skip to content

Commit

Permalink
Prevent .visibleMediumView from overriding already hidden elements …
Browse files Browse the repository at this point in the history
…(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.
  • Loading branch information
Snuffleupagus committed Sep 8, 2024
1 parent 5d0c82c commit b681ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -1581,7 +1581,7 @@ dialog :link {
#outerContainer .hiddenMediumView {
display: none !important;
}
#outerContainer .visibleMediumView {
#outerContainer .visibleMediumView:not(.hidden, [hidden]) {
display: inherit !important;
}
}
Expand Down

0 comments on commit b681ea6

Please sign in to comment.