mirror of https://github.com/zulip/zulip.git
Show floating recipient bar on faded messages.
Trac #1837 (imported from commit 1f90b02a5a07b5ce106ad935a4b1cf18e47a0909)
This commit is contained in:
parent
1975a6f693
commit
e29855e106
|
@ -511,6 +511,7 @@ function replace_floating_recipient_bar(desired_label) {
|
|||
new_label.css('display', 'table-row');
|
||||
new_label.attr("zid", rows.id(desired_label));
|
||||
|
||||
new_label.toggleClass('faded', desired_label.hasClass('faded'));
|
||||
old_label = desired_label;
|
||||
}
|
||||
show_floating_recipient_bar();
|
||||
|
@ -562,12 +563,6 @@ exports.update_floating_recipient_bar = function () {
|
|||
return;
|
||||
}
|
||||
|
||||
// Hide if the message is faded
|
||||
if (current_label.hasClass('faded')) {
|
||||
hide_floating_recipient_bar();
|
||||
return;
|
||||
}
|
||||
|
||||
// Hide if our bottom is in our bookend (or one bookend-height
|
||||
// above it). This means we're not showing any useful part of the
|
||||
// message above us, so why bother showing the label?
|
||||
|
|
|
@ -1903,6 +1903,9 @@ table.floating_recipient {
|
|||
table-layout: fixed;
|
||||
border-collapse: separate;
|
||||
width: 100%;
|
||||
|
||||
/* Needs body background because the child row becomes transparent when faded */
|
||||
background: #f4f5f4;
|
||||
}
|
||||
|
||||
#bottom_whitespace {
|
||||
|
|
Loading…
Reference in New Issue