Use a fixed menu padding on Windows and Linux
Some checks failed
CI / Test (shard 1) (push) Has been cancelled
CI / Test (shard 2) (push) Has been cancelled
CI / Test (shard 3) (push) Has been cancelled
CI / Test (shard 4) (push) Has been cancelled
CI / Utilities Tests (push) Has been cancelled
CI / Build, Upload (push) Has been cancelled

The toolkit's default menuitem padding is em-based, so it balloons
with the UI font size in menulist dropdowns (e.g., the item type
menu), which inherit that font, forcing long lists to scroll. macOS
uses a fixed value on all menus and is unaffected. Match that on
Windows and Linux, slightly roomier, so every menu stays compact
regardless of font size.

https://forums.zotero.org/discussion/132797/request-for-compact-view-in-dropdown-menus
This commit is contained in:
Dan Stillman 2026-07-24 12:00:18 -04:00
parent 512a2444d8
commit 566115dc7c
2 changed files with 4 additions and 0 deletions

View file

@ -1,4 +1,6 @@
menupopup {
--menuitem-padding: 4px 9px;
menu {
menupopup {
margin-top: -4px;

View file

@ -1,4 +1,6 @@
menupopup {
--menuitem-padding: 4px 9px;
menu, menuitem {
border-radius: 4px;
fill: currentColor;