Closed Bug 1343663 Opened 7 years ago Closed 7 years ago

Comments are too wide

Categories

(bugzilla.mozilla.org :: User Interface, defect, P2)

Production
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: billm, Unassigned)

References

Details

Attachments

(4 files, 2 obsolete files)

Attached image screenshot-wide.png β€”
I'm having some trouble reading through comments in the new bugzilla theme. They used to wrap at a reasonable width. Now the comment takes up most of the width of the screen. I find it hard to read lines that are that wide.

A lot of websites I see use a max-width setting or something to ensure that you don't have to scan across really long lines when you have a large browser window. I think this is good practice.

I'm attaching a screenshot to show what I'm seeing.
Attached image Centered, 960px β€”
Idea One: go to a more common max-width 960px instead of 1200px;
One thing I could do is screen shot alternatives and do some research with users.

I think the CSS for this is isolated to https://github.com/mozilla-bteam/bmo/blob/master/extensions/BugModal/web/bug_modal.css so the surface area of a change is small.
Thanks Emma! I think I slightly prefer the left alignment, but both are much better for me than the default.
After a day of using this I have the same opinion. 960, centered is the path of least resistance. Alternatively we can revert the centralize patch.
Comment on attachment 8842615 [details]
Centered, 960px

r=dylan
Attachment #8842615 - Flags: review+
I would recommend something like 60em / 72em, as it will scale if you ever change your font size.  That puts you at 780 and 936 pixels, respectively, which I find to be pretty legible for a fixed width font.

Hopefully once we have Markdown support, we can move away from using fixed width fonts for everything?  Maybe?  :)
I'm taking this and will incorporate :April's suggestions into the new patch. Hopefully mixing ems and pixels won't cause a problem. No pun intended.
Assignee: nobody → ehumphries
Priority: -- → P2
1em == the computed font size of the element its applied.  Currently you have font-size: 13px, so 1em == 13px.  :)

There shouldn't, in general, be issues with mixing them.  Typically one would set the font-size on body, and then use ems for the rest of it.
Attached patch CSS Patch (obsolete) β€” β€” Splinter Review
Link to proposed patch on BMO GitHub repo.
Attachment #8843162 - Flags: review?(dylan)
Attached file Updated CSS Patch (obsolete) β€”
Updated patch incorporating :dylan's comments
Attachment #8843162 - Attachment is obsolete: true
Attachment #8843465 - Flags: review?(dylan)
Attached file Updated CSS Patch β€”
Incorporating more feedback from :dylan
Attachment #8843465 - Attachment is obsolete: true
Attachment #8843465 - Flags: review?(dylan)
Comment on attachment 8843474 [details] [review]
Updated CSS Patch

r=dylan
Attachment #8843474 - Flags: review?(dylan) → review+
To git@github.com:mozilla-bteam/bmo.git
   0801b45a5..df64b724f  master -> master
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee: ehumphries → nobody
Component: User Interface: Modal → User Interface
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: