Open Bug 1577536 Opened 5 years ago Updated 2 years ago

Add a --theme-toolbar-tall-height variable for the 28px DevTools toolbars

Categories

(DevTools :: Shared Components, enhancement)

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.

Assignee: nobody → florens
Status: NEW → ASSIGNED
Blocks: 1535956
Type: task → enhancement

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.

Blocks: 1617474
Blocks: 1623137

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.

Flags: needinfo?(florens)

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

Flags: needinfo?(florens) → needinfo?(balbeza)
Assignee: florens → nobody
Status: ASSIGNED → NEW
Assignee: nobody → florens
Status: NEW → ASSIGNED
Attachment #9128475 - Attachment is obsolete: true
Assignee: florens → nobody
Status: ASSIGNED → NEW
Component: CSS and Themes → Shared Components

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.

Flags: needinfo?(balbeza) → needinfo?(odvarko)

Nicolas, should we use the patch(es)?

Flags: needinfo?(odvarko) → needinfo?(nchevobbe)

(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

Flags: needinfo?(nchevobbe)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: