Closed Bug 1166506 Opened 10 years ago Closed 9 years ago

Use the default devtools monospace font for text nodes in the markup view

Categories

(DevTools :: Inspector, defect)

40 Branch
defect
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
Firefox 41
Tracking Status
firefox41 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

Details

Attachments

(3 files)

Now that we are auto expanding the contents of nodes (bug 892935) and collapsing whitespace in the view (bug 1046803), we should update the styles to make it look nicer. We should use the default devtools-monospace font (which changes per OS)
Probably worth adding yourself as mentor and marking as a [good ... bug], unless you intended to tackle it yourself.
I thought the tricky part was going to be making sure the sizing is right across all OSes. I needed to do some exploring to figure out exactly what guidance I would give and in the process have a pretty much working patch, so I'll just take it
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Attached image markup-font-windows.png (deleted) —
screenshot of windows with and without the font applied
Attached image markup-font-osx.png (deleted) —
screenshot of osx with and without the font applied
linux just uses the default monospace font for devtools-monospace, so it doesn't end up looking any different
Attached patch markup-font.patch (deleted) — Splinter Review
What do you think? Just resets the font to inherit. While I was in there I noticed we weren't doing that comment thing that's done throughout the markup-view templates for inline-block children, so added that too
Attachment #8608265 - Flags: review?(pbrosset)
Comment on attachment 8608265 [details] [diff] [review] markup-font.patch Review of attachment 8608265 [details] [diff] [review]: ----------------------------------------------------------------- I'm not seeing a huge difference, but I trust your eye for details. I've applied the patch and it looked good locally anyway, and the code changes are fine.
Attachment #8608265 - Flags: review?(pbrosset) → review+
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 41
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: