mirror of https://github.com/zulip/zulip.git
Add semantic classes for expanding/collapsing messages
(imported from commit 9d71fd46667058ba92d941b79d6e2c822c721efe)
This commit is contained in:
parent
8cab575854
commit
8d67fc2775
|
@ -1011,11 +1011,11 @@ $(function () {
|
|||
hack_for_floating_recipient_bar();
|
||||
|
||||
if (feature_flags.summarize_read_while_narrowed) {
|
||||
$("#main_div").on("click", ".summary_row .icon-vector-expand-alt", function (e) {
|
||||
$("#main_div").on("click", ".summary_row .messages-expand", function (e) {
|
||||
exports.expand_summary_row($(e.target).closest('.summary_row').expectOne());
|
||||
e.stopImmediatePropagation();
|
||||
});
|
||||
$("#main_div").on("click", ".recipient_row .icon-vector-collapse-alt", function (e) {
|
||||
$("#main_div").on("click", ".recipient_row .messages-collapse", function (e) {
|
||||
exports.collapse_recipient_group($(e.target).closest('.recipient_row').expectOne());
|
||||
e.stopImmediatePropagation();
|
||||
});
|
||||
|
|
|
@ -780,8 +780,8 @@ td.pointer {
|
|||
background: #000;
|
||||
}
|
||||
|
||||
.icon-vector-expand-alt,
|
||||
.icon-vector-collapse-alt {
|
||||
.messages-expand,
|
||||
.messages-collapse {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
@ -789,7 +789,7 @@ td.pointer {
|
|||
We can't collapse the floating recipient bar yet, so this is
|
||||
just a temporary hack.
|
||||
*/
|
||||
.floating_recipient .icon-vector-collapse-alt {
|
||||
.floating_recipient .messages-collapse {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
<td class="message_header message_header_stream right_part">
|
||||
|
||||
{{! [+] }}
|
||||
<i class="icon-vector-expand-alt"></i>
|
||||
<i class="messages-expand icon-vector-expand-alt"></i>
|
||||
|
||||
{{#if is_stream}}
|
||||
|
||||
|
@ -93,7 +93,7 @@
|
|||
<td class="message_header_colorblock" style="background-color: {{background_color}};"></td>
|
||||
<td class="message_header message_header_stream right_part">
|
||||
{{#if collapsible}}
|
||||
<i class="icon-vector-collapse-alt"></i>
|
||||
<i class="messages-collapse icon-vector-collapse-alt"></i>
|
||||
{{/if}}
|
||||
{{#if invite_only}}<i class="icon-vector-lock" title="This is an invite-only stream"></i>{{/if}}
|
||||
<span class="message_label_clickable narrows_by_recipient stream_label"
|
||||
|
@ -116,7 +116,7 @@
|
|||
<td class="message_header_colorblock message_header_private_message" style="background-color: {{background_color}};"></td>
|
||||
<td class="message_header message_header_private_message right_part dark_background">
|
||||
{{#if collapsible}}
|
||||
<i class="icon-vector-collapse-alt"></i>
|
||||
<i class="messages-collapse icon-vector-collapse-alt"></i>
|
||||
{{/if}}
|
||||
<span class="message_label_clickable narrows_by_recipient"
|
||||
title="Narrow to your private messages with {{display_reply_to}}">
|
||||
|
|
Loading…
Reference in New Issue