Closed Bug 1802945 Opened 1 year ago Closed 1 year ago

Labels in chat UI don't overflow with ellipsis

Categories

(Thunderbird :: Instant Messaging, defect)

defect

Tracking

(thunderbird_esr102 wontfix, thunderbird108 unaffected, thunderbird109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
thunderbird_esr102 --- wontfix
thunderbird108 --- unaffected
thunderbird109 --- fixed

People

(Reporter: freaktechnik, Assigned: freaktechnik)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

We use a lot of labels and descriptions in the chat UI, for the conversation name in the conversation list and conv info, the topic, the participant names in the participants list, titles in the sidebar etc. It appears these labels no longer overflow with an ellipsis on trunk. In the 108 beta it's still fine.

This might be some change with how ellipsis works for the labels, so we'll have to update our styles to properly add ellipsis overflows in those places.

Regression range (haven't translated this to m-c yet):
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=c1b5a7c88c0852e59815d98f54ab8d00c9b40a60&tochange=618f8ad3da6fa3f74d2ad3d4fb3e7fe4d08a859d

Keywords: regression
Regressed by: 1799460
Flags: needinfo?(emilio)

Can you point me to the c-c code? How are you creating the relevant labels / description? At a glance setting display: inline-/block on them should fix it.

Flags: needinfo?(emilio)

One example would be https://searchfox.org/comm-central/rev/d99c2ec689b941ae120776f423726f59875957a5/mail/components/im/content/chat-conversation-info.js#45 (see also its wonderful inheritedAttribute). The only rules we define are https://searchfox.org/comm-central/rev/d99c2ec689b941ae120776f423726f59875957a5/mail/themes/shared/mail/chat.css#456-458

Overriding the display property would probably fix it given the existing xul.css display property doesn't behave correctly with the ::before overflow.

It also seems that labels that didn't used to need the crop attribute now do?

Are you using -moz-box-layout: legacy? That I'm not sure would behave properly... Re. cropping of labels, if we were cropping without the crop attribute then I don't know how that worked :)

The encryption label never properly had an ellipsis overflow, now does.

Depends on D163246

Assignee: nobody → martin
Status: NEW → ASSIGNED
Target Milestone: --- → 109 Branch
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: