Fix reader prefs popover ignoring the hidden attribute

The .pete-reader-typemenu class sets display:flex, which outranks the
UA [hidden]{display:none} rule, so toggling typeMenu.hidden never hid
the popover. Add an explicit [hidden] guard.
This commit is contained in:
prosolis
2026-07-07 22:48:06 -07:00
parent 74aa578a2d
commit fceeb12ad5
2 changed files with 2 additions and 1 deletions

View File

@@ -242,6 +242,7 @@ html[data-phase="night"] {
/* Text-options popover, anchored under the Aa button in the reader bar. */
.pete-reader-type { position: relative; display: inline-flex; }
.pete-reader-typemenu[hidden] { display: none; }
.pete-reader-typemenu {
position: absolute;
top: calc(100% + 0.5rem);