Closed
Bug 1202443
Opened 10 years ago
Closed 10 years ago
Timeline header shrinks when there are too many animations displayed
Categories
(DevTools :: Inspector: Animations, defect)
DevTools
Inspector: Animations
Tracking
(firefox43 fixed)
RESOLVED
FIXED
Firefox 43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: pbro, Assigned: pbro)
References
Details
Attachments
(2 files, 1 obsolete file)
174.76 KB,
image/gif
|
Details | |
3.10 KB,
patch
|
pbro
:
review+
|
Details | Diff | Splinter Review |
The animation-inspector panel's timeline header is supposed to be 20px high, but in some situations is shrinks down.
See attached GIF.
Assignee | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Comment on attachment 8657854 [details] [diff] [review]
Bug_1202443_-_Prevent_pushing_the_timeline_header_.diff
Review of attachment 8657854 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/themes/shared/devtools/animationinspector.css
@@ +175,5 @@
> }
>
> .animation-timeline .animations {
> width: 100%;
> + height: calc(100% - 20px);
We could also use directly `min-height: 20px` on `.animation-timeline .time-header` to avoid the problem; or there is specific reason why you use `calc` here instead?
When it's possible I usually prefer using plain value rather than "`calc`ulated" ones; if we have to calculate the `height`, I would say it's probably better store `20px` in a CSS variable, due the fact that is used in different CSS rules. That would make more clear what is about and also if we have to change that it will be only in one place.
Attachment #8657854 -
Flags: review?(zer0) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Thanks for the review.
You're right, I've changed the code to use min-height instead. I've also extracted all occurrences of 20px to variables in :root, this makes the UI a lot easier to change if we need to.
Attachment #8657854 -
Attachment is obsolete: true
Attachment #8658605 -
Flags: review+
Assignee | ||
Comment 4•10 years ago
|
||
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Comment 6•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Assignee | ||
Updated•9 years ago
|
Component: Developer Tools: Inspector → Developer Tools: Animation Inspector
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•