Closed Bug 966245 Opened 12 years ago Closed 11 years ago

Make session start rulers visible in Thunderbird chat logs

Categories

(Thunderbird :: Instant Messaging, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 30.0

People

(Reporter: aleth, Assigned: aleth)

References

Details

Attachments

(1 file, 1 obsolete file)

The rulers between sessions in chat logs are currently hidden by the TB message style CSS.
Attached patch 966245.patch (obsolete) — Splinter Review
Adds simple CSS for the session start ruler. This removes the code dealing with hr's in Footer.html as those are currently always hidden anyway (even when the system messages are expanded). Instead the hr's are simply not inserted in the first place.
Attachment #8368538 - Flags: review?(florian)
Comment on attachment 8368538 [details] [diff] [review] 966245.patch Review of attachment 8368538 [details] [diff] [review]: ----------------------------------------------------------------- Two comments that may not necessarily need code changes. The rest looks good. ::: mail/components/im/messages/Footer.html @@ +43,4 @@ > var nbEvents = P_list.length; > > if (target.className == "button hide") { > + for (var i=1; i < (nbEvents-2); i++) I would like you to check what this 2 means, to confirm that it doesn't need to be changed to 1 after removing the <hr>s. @@ +49,5 @@ > > target.className = "button show"; > } > else { > + for (var i=1; i < (nbEvents-2); i++) Same here.
Attachment #8368538 - Flags: review?(florian) → feedback+
(In reply to Florian Quèze [:florian] [:flo] from comment #2) > > if (target.className == "button hide") { > > + for (var i=1; i < (nbEvents-2); i++) > > I would like you to check what this 2 means, to confirm that it doesn't need > to be changed to 1 after removing the <hr>s. The -2 refers to the two status messages that remain displayed after a block is collapsed.
Attachment #8368538 - Flags: review?(florian)
Comment on attachment 8368538 [details] [diff] [review] 966245.patch The changes to Footer.html would leave the code in an ugly state, so I think I'll look at this again.
Attachment #8368538 - Flags: review?(florian)
Attached patch 966245.patch 2Splinter Review
This ports the current code from Bubbles, using a MutationObserver and CSS to fold the status messages.
Attachment #8368538 - Attachment is obsolete: true
Attachment #8374105 - Flags: review?(florian)
Comment on attachment 8374105 [details] [diff] [review] 966245.patch 2 Review of attachment 8374105 [details] [diff] [review]: ----------------------------------------------------------------- Nice cleanup! :) Assuming you've tested it, r=me.
Attachment #8374105 - Flags: review?(florian) → review+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 30.0
Blocks: 961232
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: