-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web Inspector: Improve selectors to change title area height #28287
Web Inspector: Improve selectors to change title area height #28287
Conversation
EWS run on previous version of this PR (hash 4090d04) |
FWIW, this is the follow-up of #28170 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for fixing! :)
|
||
&:is(.mac-platform.monterey, .mac-platform.big-sur):not(.docked) { | ||
/* keep in sync with `WI.undockedTitleAreaHeight` */ | ||
--undocked-title-area-height: calc(27px / var(--zoom-factor)); | ||
} | ||
|
||
&:is(.mac-platform.catalina, .mac-platform.mojave):not(.docked) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
support for macOS 10.14 Mojave was dropped in 242418@main
we can/should also remove the reference to it in WI.undockedTitleAreaHeight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept the selector for Mojave because it's still taken into account in WI.undockedTitleAreaHeight()
but indeed it is no longer generated from InspectorFrontendHost::platformVersionName()
—I'll remove it.
Also: How about another follow-up to remove the Mojave case in WI.undockedTitleAreaHeight()
? 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also: How about another follow-up to remove the Mojave case in
WI.undockedTitleAreaHeight()
? 😉
Follow-up here: #28331
4090d04
to
c5a5d17
Compare
EWS run on current version of this PR (hash c5a5d17)
|
https://bugs.webkit.org/show_bug.cgi?id=255585 Reviewed by Devin Rousso. Use only :is selectors to match MacOS and apply the non-zero title area height. The conditions expressed this way in CSS are easier to reason about when comparing them to the WI.undockedTitleAreaHeight() function. Improvement suggested by Devin Rousso. * Source/WebInspectorUI/UserInterface/Views/Variables.css: (&:is(.mac-platform.monterey, .mac-platform.big-sur):not(.docked)): (&:is(.mac-platform.catalina):not(.docked)): (&:is(.mac-platform):not(.mac-platform.monterey, .mac-platform.big-sur):not(.docked)): Deleted. Canonical link: https://commits.webkit.org/278552@main
c5a5d17
to
2cc44d1
Compare
Committed 278552@main (2cc44d1): https://commits.webkit.org/278552@main Reviewed commits have been landed. Closing PR #28287 and removing active labels. |
2cc44d1
c5a5d17
🛠 wincairo🧪 wpe-wk2🧪 ios-wk2🧪 api-mac🧪 api-wpe🧪 ios-wk2-wpt🧪 mac-wk1🧪 api-ios🧪 mac-wk2🛠 tv🧪 mac-AS-debug-wk2🧪 gtk-wk2🧪 mac-wk2-stress🧪 api-gtk