Closed Bug 1481438 Opened 7 years ago Closed 7 years ago

Horizontal scrollbar when nick name is too long

Categories

(Thunderbird :: Instant Messaging, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 63.0

People

(Reporter: Paenglab, Assigned: Paenglab)

Details

Attachments

(1 file)

In Chat's participant list (the one on the right) when a nick is longer than the width of the list a horizontal scrollbar appears. We should crop this name instead.
Attached patch cropNick.patchSplinter Review
This can be tested in maildev where a user with lots of "a" exists.
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #8998159 - Flags: review?(jorgk)
Comment on attachment 8998159 [details] [diff] [review] cropNick.patch Looks good, I didn't test it. TB 60 already does the cropping, so that's a regression, most likely from the listbox stuff, right? So if it works in TB 60, is it done via CSS there? And has that CSS been removed or should be removed? Or why why did it stop working? Should the CSS be adjusted instead of doing JS stuff here?
Yes, it's a regression from the listbox conversion. It's not done through CSS but, I think, automatically by the listbox stuff.
Comment on attachment 8998159 [details] [diff] [review] cropNick.patch OK. Please double-check that there was really no CSS involved.
Attachment #8998159 - Flags: review?(jorgk) → review+
Checked, the listcell-label has flex="1" crop="right" in its attributes and no CSS for this. We use crop="end" to be sure it works on RTL too. The listcell-label crop is set automatically by the listbox stuff, so this should work correctly too on RTL.
Keywords: checkin-needed
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/22406f6836c1 Crop the nickname when it is too long. r=jorgk
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 63.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: