From b681ea6fd9a80fc622d9402f098df2155b85ceb0 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 8 Sep 2024 10:47:18 +0200 Subject: [PATCH] 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. --- web/viewer.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/viewer.css b/web/viewer.css index b2ce01f33d684..68e777c013c50 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -1581,7 +1581,7 @@ dialog :link { #outerContainer .hiddenMediumView { display: none !important; } - #outerContainer .visibleMediumView { + #outerContainer .visibleMediumView:not(.hidden, [hidden]) { display: inherit !important; } }