Closed
Bug 1023666
Opened 11 years ago
Closed 11 years ago
Condition text labels in @media sidebar should wrap
Categories
(DevTools :: Style Editor, defect)
DevTools
Style Editor
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 33
People
(Reporter: harth, Assigned: bgrins)
Details
Attachments
(2 files, 2 obsolete files)
21.50 KB,
image/png
|
Details | |
1.90 KB,
patch
|
harth
:
review+
|
Details | Diff | Splinter Review |
If the condition text of a @media rule is too long, it'll get cut off in the @media sidebar. We should show the whole condition e.g. "only screen and (min-width: 400px) and (max-width: 700px)".
Reporter | ||
Comment 1•11 years ago
|
||
Trying a bunch of things out. This will get the text to wrap, but any text with whitespace will cause the box to expand. This makes the appearance uneven. I want it to fit the text.
This is remedied when the box containing the list of rules is a <div> instead of a <vbox>, but doing so causes the entire style editor to overflow when there are more rules than space.
Reporter | ||
Comment 2•11 years ago
|
||
Screenshot of the issue I'm running into. Notice that the "print" label doesn't overflow, but the labels with whitespace do.
Assignee | ||
Comment 3•11 years ago
|
||
Test case:
data:text/html,<style>@media only screen and (max-width: 2000px) and (min-width: 300px) { body {color:red; }}</style>hi
Assignee | ||
Comment 4•11 years ago
|
||
is this what you want it to do?
Attachment #8438765 -
Flags: review?(fayearthur)
Reporter | ||
Comment 5•11 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #4)
> Created attachment 8438765 [details] [diff] [review]
> wrap-media-labels.patch
>
> is this what you want it to do?
It would be, but it messes up for lists of many @media rules. Look at bootstrap.min.css on http://getbootstrap.com. Scroll to the bottom of the stylesheet, and notice that the style editor content overflows and the scrollbar scrolls out of sight.
Assignee | ||
Comment 6•11 years ago
|
||
OK, try this one
Attachment #8438765 -
Attachment is obsolete: true
Attachment #8438765 -
Flags: review?(fayearthur)
Reporter | ||
Comment 7•11 years ago
|
||
Comment on attachment 8438825 [details] [diff] [review]
wrap-media-labels.patch
Review of attachment 8438825 [details] [diff] [review]:
-----------------------------------------------------------------
That's perfect. Thanks for looking into it!
Attachment #8438825 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Attachment #8438084 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 9•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 33
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•