Add a --theme-toolbar-tall-height variable for the 28px DevTools toolbars
Categories
(DevTools :: Shared Components, enhancement)
Tracking
(Not tracked)
People
(Reporter: fvsch, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files, 1 obsolete file)
Console and Network define their toolbar heights directly, overriding .devtools-toolbar
.
Create a variable (--theme-toolbar-tall-height: 28px
) and a modifier class (.devtools-toolbar-tall
) for the taller toolbars, and apply them to Console and Network.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 1•4 years ago
|
||
Reporter | ||
Comment 2•4 years ago
|
||
Depends on D63839
Reporter | ||
Comment 3•4 years ago
|
||
Depends on D63840
Reporter | ||
Comment 4•4 years ago
|
||
After discussion in https://phabricator.services.mozilla.com/D63839 I moved to using the "inclusive height" for toolbar height variables:
/* Toolbar size: 24px and 28px, plus 1px for the toolbar's border */
--theme-toolbar-height: 25px;
--theme-toolbar-tall-height: 29px;
This lets us use var(--theme-toolbar-height)
directly in most settings, and only rely on calc expressions like calc(var(--theme-toolbar-height) - 1px)
exceptionally.
My original take was that it was more straightforward to define the content height and use calc to add the border height only when needed, but "only when needed" proved to be 90% of the time.
Reporter | ||
Comment 5•4 years ago
|
||
Reporter | ||
Comment 6•4 years ago
|
||
Comment 7•4 years ago
|
||
There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:fvsch, could you have a look please?
For more information, please visit auto_nag documentation.
Reporter | ||
Comment 8•4 years ago
|
||
Hi Belén, would you have time to review D63839 again?
After your first review and feedback from Tim as well, I changed how the --theme-toolbar-height
variables are defined as described here: https://phabricator.services.mozilla.com/D63839#1998970
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 9•2 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:Honza, since the bug has recent activity, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 10•2 years ago
|
||
Nicolas, should we use the patch(es)?
Comment 11•2 years ago
|
||
(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #10)
Nicolas, should we use the patch(es)?
This wasn't a trivial change, and the patch were created a few years back, so I wouldn't apply them as is.
We could reuse part of it/take inspiration from it if we ever want to do this work, but I don't think this is a high priority at the moment
Updated•2 years ago
|
Description
•