mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Fix cramped button and menulist labels on macOS 26+
Firefox stopped inflating native controls on Tahoe (bug 1992898), but still uses the old widget border sizes, so labels nearly touch the edges of the new capsule-shaped buttons and run into menulist arrows.
This commit is contained in:
parent
e863643a43
commit
fcbc6ec1d5
3 changed files with 15 additions and 0 deletions
13
scss/mac/components/_button.scss
Normal file
13
scss/mac/components/_button.scss
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// Firefox 153 draws native controls on macOS 26+ to fill their entire frame
|
||||
// (see InflateControlRect() in nsNativeThemeCocoa.mm) but still uses the old
|
||||
// widget border sizes, leaving labels nearly touching the edges of the new
|
||||
// capsule-shaped buttons and menulists
|
||||
@media (-moz-mac-tahoe-theme) {
|
||||
:where(button:not(.plain)) {
|
||||
padding-inline: 6px;
|
||||
}
|
||||
|
||||
:where(menulist) {
|
||||
padding-inline: 6px;
|
||||
}
|
||||
}
|
||||
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
// Components
|
||||
|
||||
@import "mac/components/button";
|
||||
@import "mac/components/input";
|
||||
@import "mac/components/menupopup";
|
||||
@import "mac/components/menulist";
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
@import "mac/tabBar";
|
||||
@import "mac/tabbox";
|
||||
@import "mac/titleBar";
|
||||
@import "mac/components/button";
|
||||
@import "mac/components/input";
|
||||
@import "mac/components/menupopup";
|
||||
@import "mac/components/menulist";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue