Closed Bug 1023666 Opened 11 years ago Closed 11 years ago

Condition text labels in @media sidebar should wrap

Categories

(DevTools :: Style Editor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 33

People

(Reporter: harth, Assigned: bgrins)

Details

Attachments

(2 files, 2 obsolete files)

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)".
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.
Screenshot of the issue I'm running into. Notice that the "print" label doesn't overflow, but the labels with whitespace do.
Test case: data:text/html,<style>@media only screen and (max-width: 2000px) and (min-width: 300px) { body {color:red; }}</style>hi
Attached patch wrap-media-labels.patch (obsolete) — Splinter Review
is this what you want it to do?
Attachment #8438765 - Flags: review?(fayearthur)
(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.
OK, try this one
Attachment #8438765 - Attachment is obsolete: true
Attachment #8438765 - Flags: review?(fayearthur)
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+
Attachment #8438084 - Attachment is obsolete: true
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 33
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: