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.

decorated_channel_name: Fix icon-text spacing and alignment issues.

Sayam Samal8366b3d66884
diff --git a/web/src/compose_recipient.ts b/web/src/compose_recipient.ts
index 932c86bf1f3..6e05c6b1a55 100644
--- a/web/src/compose_recipient.ts
+++ b/web/src/compose_recipient.ts
@@ -59,8 +59,7 @@ function composing_to_current_private_message_narrow(): boolean {
return _.isEqual(narrow_state_recipient, compose_state_recipient);
}
-export let update_recipient_row_attention_level = (): void => {
- // We need to adjust the privacy-icon colors in the low-attention state
+export function adjust_compose_channel_privacy_icon_color(): void {
const message_type = compose_state.get_message_type();
if (message_type === "stream") {
const stream_id = compose_state.stream_id();
@@ -69,6 +68,12 @@ export let update_recipient_row_attention_level = (): void => {
stream_color.adjust_stream_privacy_icon_colors(stream_id, channel_picker_icon_selector);
}
+}
+
+export let update_recipient_row_attention_level = (): void => {
+ // We need to adjust the privacy-icon colors in the low-attention state
+ adjust_compose_channel_privacy_icon_color();
+
// If there is any text that hasn't yet been transformed into a pill,
// we should consider that the user is not composing to the current
// DM narrow -- even though that input is ignored when sending a DM.
diff --git a/web/src/stream_color_events.ts b/web/src/stream_color_events.ts
index 5cc982e372c..125257f0295 100644
--- a/web/src/stream_color_events.ts
+++ b/web/src/stream_color_events.ts
@@ -1,5 +1,6 @@
import $ from "jquery";
+import * as compose_recipient from "./compose_recipient.ts";
import * as inbox_util from "./inbox_util.ts";
import * as message_lists from "./message_lists.ts";
import * as message_view_header from "./message_view_header.ts";
@@ -76,4 +77,5 @@ export function update_stream_color(sub: StreamSubscription, color: string): voi
update_message_recipient_color(sub.name, color);
update_stream_privacy_color(stream_id, color);
message_view_header.colorize_message_view_header();
+ compose_recipient.adjust_compose_channel_privacy_icon_color();
}
diff --git a/web/src/stream_edit.ts b/web/src/stream_edit.ts
index 7924c72b7e7..dfea774fbcd 100644
--- a/web/src/stream_edit.ts
+++ b/web/src/stream_edit.ts
@@ -876,7 +876,10 @@ export function initialize(): void {
const stream_id = get_stream_id(this);
const stream = sub_store.get(stream_id);
- const stream_name_with_privacy_symbol_html = render_decorated_channel_name({stream});
+ const stream_name_with_privacy_symbol_html = render_decorated_channel_name({
+ inline_with_text: true,
+ stream,
+ });
const is_moderation_request_channel =
stream_id === realm.realm_moderation_request_channel_id;
@@ -938,7 +941,10 @@ export function initialize(): void {
}
const stream = sub_store.get(stream_id);
- const stream_name_with_privacy_symbol_html = render_decorated_channel_name({stream});
+ const stream_name_with_privacy_symbol_html = render_decorated_channel_name({
+ inline_with_text: true,
+ stream,
+ });
const modal_content_html = render_settings_reactivation_stream_modal();
confirm_dialog.launch({
diff --git a/web/src/stream_edit_subscribers.ts b/web/src/stream_edit_subscribers.ts
index e4213332dff..98cda633cc1 100644
--- a/web/src/stream_edit_subscribers.ts
+++ b/web/src/stream_edit_subscribers.ts
@@ -435,6 +435,7 @@ function remove_subscriber({
}
const stream_name_with_privacy_symbol_html = render_decorated_channel_name({
+ inline_with_text: true,
stream: sub,
});
diff --git a/web/src/stream_popover.ts b/web/src/stream_popover.ts
index 44db8d1d18d..d64fba75057 100644
--- a/web/src/stream_popover.ts
+++ b/web/src/stream_popover.ts
@@ -881,7 +881,10 @@ export async function build_move_topic_to_stream_popover(
);
} else {
$("#move_topic_to_stream_widget .dropdown_widget_value").html(
- render_decorated_channel_name({stream, show_colored_icon: true}),
+ render_decorated_channel_name({
+ stream,
+ show_colored_icon: true,
+ }),
);
}
}
diff --git a/web/src/stream_settings_components.ts b/web/src/stream_settings_components.ts
index 8cdfdfd1511..edf2cf62235 100644
--- a/web/src/stream_settings_components.ts
+++ b/web/src/stream_settings_components.ts
@@ -274,6 +274,7 @@ export function unsubscribe_from_private_stream(sub: StreamSubscription): void {
const invite_only = sub.invite_only;
const sub_count = peer_data.get_subscriber_count(sub.stream_id);
const stream_name_with_privacy_symbol_html = render_decorated_channel_name({
+ inline_with_text: true,
stream: sub,
});
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index d46ae0ca0a2..2f8acf960aa 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -753,11 +753,39 @@ input.settings_text_input {
}
}
-.channel-privacy-type-icon {
+.decorated-channel-name-wrapper:not(.inline-decorated-channel-name) {
+ display: flex;
+ gap: var(--decorated-channel-name-privacy-icon-gap);
+ flex-wrap: nowrap;
+ align-items: baseline;
+
+ .channel-privacy-type-icon .zulip-icon {
+ /* Calculated from visual inspection
+ to look good for 12px-20px font sizes. */
+ top: 0.1467em; /* 2.2px at 15px/1em */
+ font-size: 0.9375em; /* 15px at 16px/1em */
+
+ &.zulip-icon-lock {
+ /* Calculated from visual inspection
+ to look good for 12px-20px font sizes. */
+ top: 0.08em; /* 1.2px at 15px/1em */
+ }
+ }
+}
+
+.inline-decorated-channel-name {
+ display: inline;
+
+ .decorated-channel-name {
+ margin-left: var(--inline-decorated-channel-name-privacy-icon-gap);
+ }
+}
+
+.channel-privacy-type-icon .zulip-icon {
position: relative;
- top: 0.06rem;
- padding-right: 1px;
- width: 12px;
+ /* Calculated from visual inspection
+ to look good for 12px-20px font sizes. */
+ top: 0.0688em; /* 1.1px at 16px/1em */
&.zulip-icon-globe,
&.zulip-icon-archive,
@@ -779,16 +807,6 @@ input.settings_text_input {
margin-top: -0.2188em !important;
}
-.dropdown-list-container
- .dropdown-list
- .dropdown-list-item-common-styles
- .zulip-icon-lock {
- /* We do not need to pull up lock icons in dropdowns
- so we reset their margin-top to the original value
- for a dropdown's .zulip-icon */
- margin-top: 0 !important;
-}
-
/* This includes css needed to display messages in an overlay. */
.overlay-messages-container {
position: relative;
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index adcbe0cd6e6..bd9a65be66f 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -659,6 +659,8 @@
/* User profile modal */
--user-profile-modal-height: 75dvh;
--user-profile-modal-body-margin-bottom: 20px;
+ /* Dropdown list item */
+ --dropdown-list-item-label-icon-gap: 0.3125em; /* 5px at 16px/em */
/* Height of the button for filter dropdown in stream settings UI.
It is set equal to the height of the search input, i.e. 1.4em (input
@@ -712,6 +714,10 @@
*/
--popover-tippy-arrow-before-offset: -6.5px;
+ /* Decorated channel name related values */
+ --decorated-channel-name-privacy-icon-gap: 0.3125em; /* 5px at 16px/em */
+ --inline-decorated-channel-name-privacy-icon-gap: 0.125em; /* 2px at 16px/em */
+
/* Color picker popover values */
--size-color-swatch: 1em;
--grid-gap-color-swatch: 1em;
diff --git a/web/styles/compose.css b/web/styles/compose.css
index cfbf2647456..54581c0d31e 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -1770,29 +1770,24 @@ textarea.new_message_textarea {
surrounding negative space. */
/* 7px at 20px/1em; 4px at 20px/1em. */
grid-template:
- "lefthand-offset privacy-icon privacy-icon-gap channel-name righthand-offset" auto / 0.35em [select-label-start] auto 0.2em minmax(
- 0,
- 1fr
+ "lefthand-offset privacy-icon privacy-icon-gap channel-name righthand-offset" auto
+ / 0.35em [select-label-start] auto var(
+ --dropdown-list-item-label-icon-gap
)
- [select-label-end]
- 0.35em;
+ minmax(0, 1fr) [select-label-end] 0.35em;
+
+ .decorated-channel-name-wrapper {
+ display: grid;
+ grid-area: select-label;
+ grid-template-columns: subgrid;
+ gap: 0;
+ }
.channel-privacy-type-icon {
grid-area: privacy-icon;
- place-self: center;
- font-size: 0.95em; /* 19px at 20px/1em */
- margin-top: -0.0579em; /* Eyeball work; 1.1px at 19px/1em */
- color: var(--privacy-icon-color-original);
- /* Eliminate inherited component styles. */
- position: static;
- padding: 0;
- width: 1em;
- height: 1em;
- &.zulip-icon-lock {
- /* The lock looks better centered without
- a negative margin-top adjustment. */
- margin-top: 0;
+ .zulip-icon {
+ color: var(--privacy-icon-color-original);
}
}
diff --git a/web/styles/input_pill.css b/web/styles/input_pill.css
index 983eaf77227..3efa598233a 100644
--- a/web/styles/input_pill.css
+++ b/web/styles/input_pill.css
@@ -73,10 +73,6 @@
border-color: var(--color-border-input-pill-image);
}
- .channel-privacy-type-icon {
- padding-right: 2px;
- }
-
.pill-label {
/* Treat as flex container to better position status
emoji and control ellipsis on the pill value. */
diff --git a/web/styles/modal.css b/web/styles/modal.css
index 23281da57fe..c239824b7cd 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -115,15 +115,6 @@
padding: 0.25em; /* 4px at 16px/1em */
}
- .channel-privacy-type-icon {
- /* This pushes back on suspect styles
- in app_components.css. A fuller fix
- will require tracking down other
- instances of this class. */
- width: auto;
- padding-right: 0;
- }
-
/* help_link_widget margin for the fa-circle-o. */
.help_link_widget {
margin-left: 5px;
@@ -174,15 +165,6 @@
itself correctly */
max-width: calc(100% + 3em);
}
-
- .channel-privacy-type-icon {
- /* This pushes back on suspect styles
- in app_components.css. A fuller fix
- will require tracking down other
- instances of this class. */
- width: auto;
- padding-right: 0;
- }
}
#api_key_value {
diff --git a/web/styles/popovers.css b/web/styles/popovers.css
index bf0e38e8f14..ba5833d3b59 100644
--- a/web/styles/popovers.css
+++ b/web/styles/popovers.css
@@ -570,13 +570,6 @@ ul.popover-group-menu-member-list {
max-width: 100%;
}
- .modal__title {
- .channel-privacy-type-icon {
- padding-left: 3px;
- padding-right: 5px;
- }
- }
-
#report_type_options_widget_wrapper,
#move_topic_to_stream_widget_wrapper {
display: flex;
@@ -595,16 +588,6 @@ ul.popover-group-menu-member-list {
text-overflow: ellipsis;
white-space: nowrap;
color: var(--color-text-default);
-
- .channel-privacy-type-icon {
- /* 13px at 16px/1em */
- font-size: 0.8125em;
- /* 13px at 13px/1em */
- width: 1em;
- height: 1em;
- position: relative;
- top: 2px;
- }
}
.zulip-icon-chevron-down {
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 66125828420..846bfea0c9c 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -533,11 +533,6 @@ input[type="checkbox"] {
16px-square box (at 16px/1em) for the
chevron icon. */
max-width: calc(100% - 1em);
- display: flex;
- align-items: baseline;
- /* Mimic the space from the previous inline
- layout. */
- gap: 0.4ch;
}
.decorated-channel-name {
@@ -659,14 +654,6 @@ input[type="checkbox"] {
}
}
-#confirm_reset_stream_notifications_modal {
- .channel-privacy-type-icon {
- padding-left: 3px;
- padding-right: 0;
- width: auto;
- }
-}
-
#customizable_stream_notifications_table .dropdown-widget-button {
/* 225px at 16px/1em */
width: 14.0625em;
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index e55b9c135a4..d09c90f3592 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -389,10 +389,6 @@ h4.user_group_setting_subsection_title {
font-weight: normal;
line-height: 1.5;
display: inline;
-
- .channel-privacy-type-icon {
- margin-right: 4px;
- }
}
}
diff --git a/web/styles/tooltips.css b/web/styles/tooltips.css
index a68f69f0377..02f446d6626 100644
--- a/web/styles/tooltips.css
+++ b/web/styles/tooltips.css
@@ -95,12 +95,6 @@
white-space: nowrap;
}
- .channel-privacy-type-icon {
- width: 9px;
- padding-left: 2px;
- top: 0.5px;
- }
-
.view-channel-tooltip {
/* This is needed so that the hotkey hints do not
move to a new line after "View #{channel_name}". */
diff --git a/web/styles/typeahead.css b/web/styles/typeahead.css
index 58cd1e6191b..2ae80817d8b 100644
--- a/web/styles/typeahead.css
+++ b/web/styles/typeahead.css
@@ -170,8 +170,14 @@
align-items: baseline;
font-weight: 500;
- .channel-privacy-type-icon {
- margin-right: 3px;
+ .decorated-channel-name-wrapper {
+ display: inline-flex;
+ max-width: 100%;
+
+ .decorated-channel-name {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
}
}
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 1a61b808dc5..22717ba7618 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -2256,12 +2256,9 @@ body:not(.spectator-view) {
.dropdown-list .dropdown-list-item-common-styles {
display: grid;
grid-template:
- "privacy-icon item-label " min-content
- "item-description item-description" minmax(0, min-content) / minmax(
- 0,
- auto
- )
- minmax(0, 1fr);
+ "item-label" min-content
+ "item-description" minmax(0, min-content)
+ / minmax(0, 1fr);
color: var(--color-dropdown-item);
padding: 3px 10px 3px 8px;
font-weight: 400;
@@ -2271,28 +2268,29 @@ body:not(.spectator-view) {
vertically centered properly. */
line-height: 1.214;
- .channel-privacy-type-icon,
- .zulip-icon-deactivated-circle {
- grid-area: privacy-icon;
- line-height: 1.214;
- font-size: 0.93em;
- /* We set only the width so that flexbox
- can do its work to properly center,
- regardless of the height. */
- width: 0.93em;
- padding-right: 5px;
- padding-left: 0;
- /* Override the [data-tippy-root] style in
- `tooltips.css`.
- Because we are manually holding icon
- alignment to the first/only line of a
- channel, we make this adjustment here.
- Calculated by eye to look good at 12px-20px. */
- top: 0.05em;
- }
-
- .decorated-channel-name {
+ .decorated-channel-name-wrapper,
+ .dropdown-list-item-direct-message,
+ .dropdown-list-item-setting-disabled-option,
+ .dropdown-list-item-channel-mapping {
grid-area: item-label;
+ display: flex;
+ gap: var(--dropdown-list-item-label-icon-gap);
+
+ .zulip-icon {
+ font-size: 0.9375em; /* 15px at 16px/1em */
+ }
+ }
+
+ .decorated-channel-name-wrapper .channel-privacy-type-icon,
+ .dropdown-list-item-icon {
+ line-height: 1.214;
+ }
+
+ .dropdown-list-item-channel-mapping .zulip-icon {
+ position: relative;
+ /* Calculated from visual inspection
+ to look good for 12px-20px font sizes. */
+ top: 0.1467em; /* 2.2px at 15px/1em */
}
.dropdown-list-item-description {
diff --git a/web/templates/confirm_dialog/confirm_reset_stream_notifications.hbs b/web/templates/confirm_dialog/confirm_reset_stream_notifications.hbs
index 41b31c209dd..5ba2afd93f5 100644
--- a/web/templates/confirm_dialog/confirm_reset_stream_notifications.hbs
+++ b/web/templates/confirm_dialog/confirm_reset_stream_notifications.hbs
@@ -1,4 +1,4 @@
{{#tr}}
Are you sure you want to reset notifications for <z-stream></z-stream>?
-{{#*inline "z-stream"}}{{> ../decorated_channel_name stream=sub show_colored_icon=false}}{{/inline}}
+{{#*inline "z-stream"}}{{> ../decorated_channel_name inline_with_text=true stream=sub show_colored_icon=false}}{{/inline}}
{{/tr}}
diff --git a/web/templates/decorated_channel_name.hbs b/web/templates/decorated_channel_name.hbs
index dc85b1accef..3800d1ee415 100644
--- a/web/templates/decorated_channel_name.hbs
+++ b/web/templates/decorated_channel_name.hbs
@@ -1,10 +1,7 @@
-{{! This controls whether the swatch next to streams in the left sidebar has a lock icon. }}
-{{~#if stream.is_archived ~}}
-<i class="zulip-icon zulip-icon-archive channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> <span class="decorated-channel-name">{{stream.name ~}}</span>
-{{~ else if stream.invite_only ~}}
-<i class="zulip-icon zulip-icon-lock channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> <span class="decorated-channel-name">{{stream.name ~}}</span>
-{{~ else if stream.is_web_public ~}}
-<i class="zulip-icon zulip-icon-globe channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> <span class="decorated-channel-name">{{stream.name ~}}</span>
-{{~ else ~}}
-<i class="zulip-icon zulip-icon-hashtag channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> <span class="decorated-channel-name">{{stream.name ~}}</span>
-{{~/if~}}
+<span class="decorated-channel-name-wrapper{{#if inline_with_text}} inline-decorated-channel-name{{/if}}">
+ <span class="channel-privacy-type-icon{{#if show_colored_icon}} stream-privacy-original-color-{{stream.stream_id}}{{/if}}"{{#if show_colored_icon}} style="color: {{stream.color}}"{{/if}}>
+ {{~> stream_privacy stream ~}}
+ </span>
+ {{~!-- squash whitespace --~}}
+ <span class="decorated-channel-name">{{stream.name}}</span>
+</span>
diff --git a/web/templates/dropdown_list.hbs b/web/templates/dropdown_list.hbs
index b96877ad59f..9e43ec36835 100644
--- a/web/templates/dropdown_list.hbs
+++ b/web/templates/dropdown_list.hbs
@@ -31,17 +31,25 @@
{{#if stream}}
{{> decorated_channel_name stream=stream show_colored_icon=true}}
{{else if is_direct_message}}
- <i class="zulip-icon zulip-icon-users channel-privacy-type-icon"></i> <span class="decorated-dm-name">{{name}}</span>
+ <div class="dropdown-list-item-direct-message">
+ <i class="zulip-icon zulip-icon-users dropdown-list-item-icon"></i>
+ <span class="decorated-dm-name">{{name}}</span>
+ </div>
{{else if is_setting_disabled}}
- <i class="setting-disabled-option-icon zulip-icon zulip-icon-deactivated-circle" aria-hidden="true"></i>
- {{#if bold_current_selection}}
- <span class="setting-disabled-option-text dropdown-list-text-selected">{{t "Disable" }}</span>
- {{else}}
- <span class="setting-disabled-option-text dropdown-list-text-neutral">{{t "Disable" }}</span>
- {{/if}}
+ <div class="dropdown-list-item-setting-disabled-option">
+ <i class="setting-disabled-option-icon zulip-icon zulip-icon-deactivated-circle dropdown-list-item-icon" aria-hidden="true"></i>
+ {{#if bold_current_selection}}
+ <span class="setting-disabled-option-text dropdown-list-text-selected">{{t "Disable" }}</span>
+ {{else}}
+ <span class="setting-disabled-option-text dropdown-list-text-neutral">{{t "Disable" }}</span>
+ {{/if}}
+ </div>
{{else if (eq unique_id -2)}}
{{!-- This is the option for PresetUrlOption.CHANNEL_MAPPING --}}
- <i class="zulip-icon zulip-icon-hashtag channel-privacy-type-icon" aria-hidden="true"></i> <span class="dropdown-list-text-neutral">{{name}}</span>
+ <div class="dropdown-list-item-channel-mapping">
+ <i class="zulip-icon zulip-icon-hashtag dropdown-list-item-icon" aria-hidden="true"></i>
+ <span class="dropdown-list-text-neutral">{{name}}</span>
+ </div>
{{else}}
<span class="dropdown-list-item-name">
{{#if bold_current_selection}}
diff --git a/web/templates/inline_stream_or_topic_reference.hbs b/web/templates/inline_stream_or_topic_reference.hbs
index 3d31929973e..3d7188579fd 100644
--- a/web/templates/inline_stream_or_topic_reference.hbs
+++ b/web/templates/inline_stream_or_topic_reference.hbs
@@ -1,6 +1,6 @@
<span class="stream-or-topic-reference">
{{~#if stream~}}
- {{> decorated_channel_name stream=stream show_colored_icon=show_colored_icon}}
+ {{> decorated_channel_name inline_with_text=true stream=stream show_colored_icon=show_colored_icon}}
{{#if topic_display_name~}} &gt; {{/if}}
{{~/if~}}
<span {{#if is_empty_string_topic}}class="empty-topic-display"{{/if}}>{{~ topic_display_name ~}}</span>
diff --git a/web/templates/input_pill.hbs b/web/templates/input_pill.hbs
index 0d862c5c1cb..6c97bff980a 100644
--- a/web/templates/input_pill.hbs
+++ b/web/templates/input_pill.hbs
@@ -13,22 +13,17 @@
<span class="pill-label">
<span class="pill-value">
{{#if has_stream}}
- {{~#if stream.invite_only ~}}
- <i class="zulip-icon zulip-icon-lock channel-privacy-type-icon" aria-hidden="true"></i>
- {{~ else if stream.is_web_public ~}}
- <i class="zulip-icon zulip-icon-globe channel-privacy-type-icon" aria-hidden="true"></i>
- {{~ else ~}}
- <i class="zulip-icon zulip-icon-hashtag channel-privacy-type-icon" aria-hidden="true"></i>
- {{~/if~}}
- {{/if}}
- {{#if is_combined_channel_topic}}
- {{sign}}#{{combined_channel_name}} &gt;<span {{#if is_empty_string_topic}}class="empty-topic-display"{{/if}}> {{topic_display_name}}</span>
- {{else}}
- {{#if is_empty_string_topic}}
- {{sign}}topic:{{#if topic_display_name}}<span class="empty-topic-display"> {{topic_display_name}}</span>{{/if}}
+ {{> decorated_channel_name stream=stream }}
{{else}}
- {{ display_value }}
- {{/if}}
+ {{#if is_combined_channel_topic}}
+ {{sign}}#{{combined_channel_name}} &gt;<span {{#if is_empty_string_topic}}class="empty-topic-display"{{/if}}> {{topic_display_name}}</span>
+ {{else}}
+ {{#if is_empty_string_topic}}
+ {{sign}}topic:{{#if topic_display_name}}<span class="empty-topic-display"> {{topic_display_name}}</span>{{/if}}
+ {{else}}
+ {{~ display_value }}
+ {{/if}}
+ {{/if}}
{{/if}}
</span>
{{~#if should_add_guest_user_indicator}}&nbsp;<i>({{t 'guest'}})</i>{{~/if~}}
diff --git a/web/templates/modal_banner/unsubscribed_participants_warning_banner.hbs b/web/templates/modal_banner/unsubscribed_participants_warning_banner.hbs
index 37d76d08375..1c8df8f6656 100644
--- a/web/templates/modal_banner/unsubscribed_participants_warning_banner.hbs
+++ b/web/templates/modal_banner/unsubscribed_participants_warning_banner.hbs
@@ -10,7 +10,7 @@
{{~/list_each ~}}
)
{{~/inline}}
- {{#*inline "z-stream"}}<strong class="highlighted-element">{{> ../decorated_channel_name stream=stream}}</strong>{{/inline}}
+ {{#*inline "z-stream"}}<strong class="highlighted-element">{{> ../decorated_channel_name inline_with_text=true stream=stream}}</strong>{{/inline}}
{{/tr}}
{{else if few_unsubscribed_participants}}
@@ -23,13 +23,13 @@
{{~/list_each ~}}
)
{{~/inline}}
- {{#*inline "z-stream"}}<strong class="highlighted-element">{{> ../decorated_channel_name stream=stream}}</strong>{{/inline}}
+ {{#*inline "z-stream"}}<strong class="highlighted-element">{{> ../decorated_channel_name inline_with_text=true stream=stream}}</strong>{{/inline}}
{{/tr}}
{{else}}
{{#tr}}
{unsubscribed_participants_count} topic participants are not subscribed to <z-stream></z-stream>.
- {{#*inline "z-stream"}}<strong class="highlighted-element">{{> ../decorated_channel_name stream=stream}}</strong>{{/inline}}
+ {{#*inline "z-stream"}}<strong class="highlighted-element">{{> ../decorated_channel_name inline_with_text=true stream=stream}}</strong>{{/inline}}
{{/tr}}
{{/if}}
</p>
diff --git a/web/templates/skipped_marking_unread.hbs b/web/templates/skipped_marking_unread.hbs
index a6af762d7ee..680907a4188 100644
--- a/web/templates/skipped_marking_unread.hbs
+++ b/web/templates/skipped_marking_unread.hbs
@@ -3,7 +3,7 @@
{{#*inline "z-streams" ~}}
<strong>
{{~#list_each streams as |stream| ~}}
- {{> decorated_channel_name stream=stream}}
+ {{> decorated_channel_name inline_with_text=true stream=stream}}
{{~/list_each ~}}
</strong>
{{~/inline}}
diff --git a/web/templates/stream_privacy.hbs b/web/templates/stream_privacy.hbs
index 21c877cd6b5..4f7afa85c7e 100644
--- a/web/templates/stream_privacy.hbs
+++ b/web/templates/stream_privacy.hbs
@@ -1,10 +1,10 @@
{{! This controls whether the swatch next to streams in the left sidebar has a lock icon. }}
-{{#if is_archived}}
+{{~#if is_archived ~}}
<i class="zulip-icon zulip-icon-archive" aria-hidden="true"></i>
-{{else if invite_only}}
+{{~else if invite_only ~}}
<i class="zulip-icon zulip-icon-lock" aria-hidden="true"></i>
-{{else if is_web_public}}
+{{~else if is_web_public ~}}
<i class="zulip-icon zulip-icon-globe" aria-hidden="true"></i>
-{{else}}
+{{~else~}}
<i class="zulip-icon zulip-icon-hashtag" aria-hidden="true"></i>
-{{/if}}
+{{~/if~}}
diff --git a/web/templates/stream_settings/announce_stream_checkbox.hbs b/web/templates/stream_settings/announce_stream_checkbox.hbs
index 9235b483c9d..2f684f3bd13 100644
--- a/web/templates/stream_settings/announce_stream_checkbox.hbs
+++ b/web/templates/stream_settings/announce_stream_checkbox.hbs
@@ -5,6 +5,7 @@
{{#if new_stream_announcements_stream_sub}}
<strong>
{{> ../decorated_channel_name
+ inline_with_text=true
stream=new_stream_announcements_stream_sub
}}
</strong>
diff --git a/web/templates/stream_settings/browse_streams_list_item.hbs b/web/templates/stream_settings/browse_streams_list_item.hbs
index a654f0077a9..a54e764f4ee 100644
--- a/web/templates/stream_settings/browse_streams_list_item.hbs
+++ b/web/templates/stream_settings/browse_streams_list_item.hbs
@@ -9,7 +9,7 @@
<span>
{{#tr}}
Unsubscribe from <z-stream></z-stream>
- {{#*inline "z-stream"}}{{> ../decorated_channel_name stream=this}}{{/inline}}
+ {{#*inline "z-stream"}}{{> ../decorated_channel_name inline_with_text=true stream=this}}{{/inline}}
{{/tr}}
</span>
</template>
@@ -26,7 +26,7 @@
<span>
{{#tr}}
Subscribe to <z-stream></z-stream>
- {{#*inline "z-stream"}}{{> ../decorated_channel_name stream=this}}{{/inline}}
+ {{#*inline "z-stream"}}{{> ../decorated_channel_name inline_with_text=true stream=this}}{{/inline}}
{{/tr}}
</span>
</template>
@@ -35,7 +35,7 @@
<span>
{{#tr}}
Cannot subscribe to <z-stream></z-stream>
- {{#*inline "z-stream"}}{{> ../decorated_channel_name stream=this}}{{/inline}}
+ {{#*inline "z-stream"}}{{> ../decorated_channel_name inline_with_text=true stream=this}}{{/inline}}
{{/tr}}
</span>
</template>
diff --git a/web/templates/stream_settings/selected_stream_title.hbs b/web/templates/stream_settings/selected_stream_title.hbs
index ea7606d1bb2..3655b482a7d 100644
--- a/web/templates/stream_settings/selected_stream_title.hbs
+++ b/web/templates/stream_settings/selected_stream_title.hbs
@@ -11,7 +11,7 @@
<span class="view-channel-text">
{{#tr}}
View <z-channel-name></z-channel-name>
- {{#*inline "z-channel-name"}}{{> ../decorated_channel_name stream=sub}}{{/inline}}
+ {{#*inline "z-channel-name"}}{{> ../decorated_channel_name inline_with_text=true stream=sub}}{{/inline}}
{{/tr}}
</span>
{{tooltip_hotkey_hints "Shift" "V"}}
@@ -24,7 +24,7 @@
<span>
{{#tr}}
Cannot subscribe to private channel <z-stream></z-stream>
- {{#*inline "z-stream"}}{{> ../decorated_channel_name stream=../sub}}{{/inline}}
+ {{#*inline "z-stream"}}{{> ../decorated_channel_name inline_with_text=true stream=../sub}}{{/inline}}
{{/tr}}
</span>
</template>
diff --git a/web/tests/search.test.cjs b/web/tests/search.test.cjs
index 0cbb41aab6e..aa59ab54f24 100644
--- a/web/tests/search.test.cjs
+++ b/web/tests/search.test.cjs
@@ -102,7 +102,7 @@ run_test("initialize", ({override, override_rewire, mock_template}) => {
let expected_value = `<div class="search_list_item">\n <div class="description">Search for dm</div>\n \n</div>\n`;
assert.equal(opts.item_html(search_suggestions[0], "dm"), expected_value);
- expected_value = `<div class="search_list_item">\n <span class="pill-container"><div class='pill ' tabindex=0>\n <span class="pill-label">\n <span class="pill-value">\n dm:\n </span></span>\n <div class="exit">\n <a role="button" class="zulip-icon zulip-icon-close pill-close-button"></a>\n </div>\n</div>\n</span>\n <div class="description">Direct messages with</div>\n</div>\n`;
+ expected_value = `<div class="search_list_item">\n <span class="pill-container"><div class='pill ' tabindex=0>\n <span class="pill-label">\n <span class="pill-value">\ndm:\n </span></span>\n <div class="exit">\n <a role="button" class="zulip-icon zulip-icon-close pill-close-button"></a>\n </div>\n</div>\n</span>\n <div class="description">Direct messages with</div>\n</div>\n`;
assert.equal(opts.item_html(search_suggestions[1], "dm"), expected_value);
/* Test sorter */
@@ -119,7 +119,7 @@ run_test("initialize", ({override, override_rewire, mock_template}) => {
const search_string = "channel: Verona";
description_html = "Messages in #Verona";
- expected_value = `<div class="search_list_item">\n <span class="pill-container"><div class='pill ' tabindex=0>\n <span class="pill-label">\n <span class="pill-value">\n ${search_string}\n </span></span>\n <div class="exit">\n <a role="button" class="zulip-icon zulip-icon-close pill-close-button"></a>\n </div>\n</div>\n</span>\n <div class="description">${description_html}</div>\n</div>\n`;
+ expected_value = `<div class="search_list_item">\n <span class="pill-container"><div class='pill ' tabindex=0>\n <span class="pill-label">\n <span class="pill-value">\n${search_string}\n </span></span>\n <div class="exit">\n <a role="button" class="zulip-icon zulip-icon-close pill-close-button"></a>\n </div>\n</div>\n</span>\n <div class="description">${description_html}</div>\n</div>\n`;
assert.equal(opts.item_html(search_suggestions[1], "ver"), expected_value);
/* Test sorter */
diff --git a/web/tests/stream_pill.test.cjs b/web/tests/stream_pill.test.cjs
index 0f6239513c7..08a32d0e7ee 100644
--- a/web/tests/stream_pill.test.cjs
+++ b/web/tests/stream_pill.test.cjs
@@ -154,7 +154,9 @@ run_test("generate_pill_html", () => {
"<div class='pill 'data-stream-id=\"101\" tabindex=0>\n" +
' <span class="pill-label">\n' +
' <span class="pill-value">\n' +
- '<i class="zulip-icon zulip-icon-hashtag channel-privacy-type-icon" aria-hidden="true"></i> Denmark\n' +
+ ' <span class="decorated-channel-name-wrapper">\n' +
+ ' <span class="channel-privacy-type-icon"><i class="zulip-icon zulip-icon-hashtag" aria-hidden="true"></i></span><span class="decorated-channel-name">Denmark</span>\n' +
+ "</span>\n" +
" </span></span>\n" +
' <div class="exit">\n' +
' <a role="button" class="zulip-icon zulip-icon-close pill-close-button"></a>\n' +
diff --git a/web/tests/user_group_pill.test.cjs b/web/tests/user_group_pill.test.cjs
index 2b790bbbdb9..d67cf497869 100644
--- a/web/tests/user_group_pill.test.cjs
+++ b/web/tests/user_group_pill.test.cjs
@@ -160,7 +160,7 @@ run_test("generate_pill_html", () => {
"<div class='pill 'data-user-group-id=\"102\" tabindex=0>\n" +
' <span class="pill-label">\n' +
' <span class="pill-value">\n' +
- " Testers\n" +
+ "Testers\n" +
' </span>&nbsp;<span class="group-members-count">(4)</span></span>\n' +
' <div class="exit">\n' +
' <a role="button" class="zulip-icon zulip-icon-close pill-close-button"></a>\n' +