Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_header: Fix overlap on mobile with flex.

Gittenburg0b4568d249ec
diff --git a/static/styles/zulip.scss b/static/styles/zulip.scss
index c3aa2d9cb94..77622292e16 100644
--- a/static/styles/zulip.scss
+++ b/static/styles/zulip.scss
@@ -871,17 +871,18 @@ td.pointer {
.stream_topic {
display: inline-block;
- padding: 3px 3px 2px 12px;
- margin-left: -5px;
+ padding: 3px 3px 2px 9px;
height: 17px;
line-height: 17px;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
-.recipient_row_date {
- position: absolute;
- right: 0;
- top: 0;
+.recipient_bar_controls {
+ flex-grow: 1;
+}
+.recipient_row_date {
color: hsl(0, 0%, 53%);
font-size: 12px;
font-weight: 600;
@@ -1016,6 +1017,8 @@ td.pointer {
}
.message-header-contents {
+ display: flex;
+ align-items: center;
border-right: 1px solid hsl(0, 0%, 88%);
background-color: hsl(0, 0%, 88%);
}
diff --git a/static/templates/recipient_row.hbs b/static/templates/recipient_row.hbs
index b7823eeb4c8..bd2cf77ccef 100644
--- a/static/templates/recipient_row.hbs
+++ b/static/templates/recipient_row.hbs
@@ -51,8 +51,8 @@
</span>
<i class="fa fa-bell-slash on_hover_topic_mute recipient_bar_icon" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" title="{{t 'Mute topic' }} (M)" role="button" tabindex="0" aria-label="{{t 'Mute topic' }} (M)"></i>
- <span class="recipient_row_date {{#if group_date_divider_html}}{{else}}hide-date{{/if}}">{{{date}}}</span>
</span>
+ <span class="recipient_row_date {{#if group_date_divider_html}}{{else}}hide-date{{/if}}">{{{date}}}</span>
</div>
</div>
</div>