Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_view: Don't wrap topic name below channel name.
Aman Agrawal1c87c8b963e7
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.cssindex 2813cdddc01..2cbf1d45f41 100644--- a/web/styles/recent_view.css+++ b/web/styles/recent_view.css@@ -468,54 +468,58 @@.recent_topic_name {padding-left: 0.625em; /* 10px at 16px/1em */- .recent-view-conversation-wrapper {+ .recent-view-conversation-with-unread-wrapper {+ display: grid;+ grid-template-areas:+ "conversation-type chevron-right conversation-name unread-mention-and-count"+ ". . conversation-name .";+ width: 100%;+ /* We add 1em for the privacy icon and 8px for the flexbox+ gap between the icon and the channel name. */+ grid-template-columns:+ min(+ calc(+ var(--longest-subscribed-channel-name-width) + 1em + 8px+ ),+ 33.3%+ )+ auto 1fr auto;+ align-items: center;+ }++ .recent-view-conversation-type-wrapper {+ grid-area: conversation-type;display: flex;- align-items: flex-start;+ align-items: center;gap: 8px;- width: 100%;- box-sizing: border-box;++ .stream-privacy {+ height: 1em;+ }+ }++ .recent-view-conversation-link {+ grid-area: conversation-name;+ }++ .recent-view-unread-mention-and-count-wrapper {+ grid-area: unread-mention-and-count;}.zulip-icon-chevron-right {+ grid-area: chevron-right;font-size: 0.9375em; /* 15px at 16px/1em */- vertical-align: middle;color: hsl(0deg 0% 60%);padding: 0 0.125em; /* 2px at 16px/1em */}- .recent-view-channel-icon-wrapper {- flex-shrink: 0;- display: flex;- align-items: center;- justify-content: center;- margin-top: 0.1875em; /* 3px at 16px/1em */- padding-right: 0.4375em;- }-.recent-view-dm-name,.recent-view-channel-name {opacity: 0.8;- display: inline-block;- width: min(var(--longest-subscribed-channel-name-width), 33.3%);- vertical-align: bottom;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}-- .recent-view-topic-wrapper {- /* Start at 0 width and grow to take remaining space.- Without this, long topic names push unread count- below the participant avatars.- See: https://css-tricks.com/flex-grow-is-weird/- */- width: 0;- flex-grow: 1;- }-- .recent-view-conversation-link {- display: inline;- }}& thead .last_msg_time_header {diff --git a/web/templates/recent_view_row.hbs b/web/templates/recent_view_row.hbsindex 4041c78ba18..9797328656e 100644--- a/web/templates/recent_view_row.hbs+++ b/web/templates/recent_view_row.hbs@@ -1,40 +1,36 @@<tr id="recent_conversation:{{conversation_key}}" class="{{#unless (eq unread_count 0)}}unread_topic{{/unless}} {{#if is_private}}private_conversation_row{{/if}} recent-view-body-row recent_view_focusable" data-col-index="{{ column_indexes.topic }}" tabindex="0">{{!-- TODO: Rename recent_topic_name to recent-view-conversation-column--}}<td class="recent_topic_name">- <div class="flex_container">- <div class="recent-view-conversation-wrapper">- <div class="recent-view-channel-icon-wrapper">- {{#if is_private}}- {{!-- For presence/group indicator --}}- <span class="pm_status_icon {{#unless is_group}}show-tooltip{{/unless}}" data-tippy-placement="top" data-user-ids-string="{{user_ids_string}}">- {{#if is_group}}- <span class="conversation-partners-icon zulip-icon zulip-icon-dm-groups-3"></span>- {{else if is_bot}}- <span class="zulip-icon zulip-icon-bot" aria-hidden="true"></span>- {{else}}- <span class="zulip-icon zulip-icon-{{user_circle_class}} {{user_circle_class}} user-circle" data-presence-indicator-user-id="{{user_ids_string}}"></span>- {{/if}}- </span>- {{else}}- <span class="stream-privacy-original-color-{{stream_id}} stream-privacy filter-icon" style="color: {{stream_color}}">- {{> stream_privacy . }}- </span>- {{/if}}- </div>- <div class="recent-view-topic-wrapper">- {{#if is_private}}- <a href="{{pm_url}}" class="recent-view-dm-name recent-view-table-link" tabindex="-1">{{t "DM" }}</a>- {{else}}- <a href="{{topic_url}}" class="recent-view-channel-name recent-view-table-link" data-tippy-content="{{stream_name}}" tabindex="-1">{{stream_name}}</a>- {{/if}}- <i class="zulip-icon zulip-icon-chevron-right"></i>- {{#if is_private}}- <a href="{{pm_url}}" class="recent-view-conversation-link recent-view-table-link {{#if is_group}}recent-view-dm-group{{else}}recent-view-dm{{/if}}" tabindex="-1">{{{rendered_pm_with_html}}}</a>+ <div class="recent-view-conversation-with-unread-wrapper">+ <div class="recent-view-conversation-type-wrapper">+ {{#if is_private}}+ {{!-- For presence/group indicator --}}+ <span class="pm_status_icon {{#unless is_group}}show-tooltip{{/unless}}" data-tippy-placement="top" data-user-ids-string="{{user_ids_string}}">+ {{#if is_group}}+ <span class="conversation-partners-icon zulip-icon zulip-icon-dm-groups-3"></span>+ {{else if is_bot}}+ <span class="zulip-icon zulip-icon-bot" aria-hidden="true"></span>{{else}}- <a class="recent-view-conversation-link recent-view-table-link {{#if is_empty_string_topic}}empty-topic-display{{/if}}" href="{{topic_url}}" tabindex="-1">{{topic_display_name}}</a>+ <span class="zulip-icon zulip-icon-{{user_circle_class}} {{user_circle_class}} user-circle" data-presence-indicator-user-id="{{user_ids_string}}"></span>{{/if}}- </div>+ </span>+ {{else}}+ <span class="stream-privacy-original-color-{{stream_id}} stream-privacy filter-icon" style="color: {{stream_color}}">+ {{> stream_privacy . }}+ </span>+ {{/if}}+ {{#if is_private}}+ <a href="{{pm_url}}" class="recent-view-dm-name recent-view-table-link" tabindex="-1">{{t "DM" }}</a>+ {{else}}+ <a href="{{topic_url}}" class="recent-view-channel-name recent-view-table-link" data-tippy-content="{{stream_name}}" tabindex="-1">{{stream_name}}</a>+ {{/if}}</div>+ <i class="zulip-icon zulip-icon-chevron-right"></i>+ {{#if is_private}}+ <a href="{{pm_url}}" class="recent-view-conversation-link recent-view-table-link {{#if is_group}}recent-view-dm-group{{else}}recent-view-dm{{/if}}" tabindex="-1">{{{rendered_pm_with_html}}}</a>+ {{else}}+ <a class="recent-view-conversation-link recent-view-table-link {{#if is_empty_string_topic}}empty-topic-display{{/if}}" href="{{topic_url}}" tabindex="-1">{{topic_display_name}}</a>+ {{/if}}<div class="recent-view-unread-mention-and-count-wrapper">{{#if is_private}}<span class="unread_mention_info tippy-zulip-tooltip {{#unless has_unread_mention}}unread_hidden{{/unless}}"