mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
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
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:
parent
512a2444d8
commit
566115dc7c
2 changed files with 4 additions and 0 deletions
|
|
@ -1,4 +1,6 @@
|
|||
menupopup {
|
||||
--menuitem-padding: 4px 9px;
|
||||
|
||||
menu {
|
||||
menupopup {
|
||||
margin-top: -4px;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
menupopup {
|
||||
--menuitem-padding: 4px 9px;
|
||||
|
||||
menu, menuitem {
|
||||
border-radius: 4px;
|
||||
fill: currentColor;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue