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_view_header: Fix bad rendering of stream links in description.

Akshatd302ac4a187c
diff --git a/web/e2e-tests/navigation.test.ts b/web/e2e-tests/navigation.test.ts
index ac16cd1ffea..be48254ffaa 100644
--- a/web/e2e-tests/navigation.test.ts
+++ b/web/e2e-tests/navigation.test.ts
@@ -107,7 +107,7 @@ async function navigation_tests(page: Page): Promise<void> {
// Verify that we're narrowed to the target stream
await page.waitForSelector(
`xpath///*[@id="message_view_header"]//*[${common.has_class_x(
- "stream",
+ "message-header-stream-settings-button",
)} and normalize-space()="Verona"]`,
);
}
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index c9dcca0b68a..2e6b7a12cb8 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1929,7 +1929,7 @@ div.focused_table {
}
.sub_count,
- .stream,
+ .message-header-stream-settings-button,
& > span {
white-space: nowrap;
list-style-type: none;
@@ -1965,7 +1965,7 @@ div.focused_table {
}
}
- .stream {
+ .message-header-stream-settings-button {
text-overflow: clip;
color: inherit;
text-decoration: none;
diff --git a/web/templates/message_view_header.hbs b/web/templates/message_view_header.hbs
index aed0b610ff5..fcf58efb9e7 100644
--- a/web/templates/message_view_header.hbs
+++ b/web/templates/message_view_header.hbs
@@ -1,5 +1,5 @@
{{#if stream_settings_link}}
-<a class="stream" href="{{stream_settings_link}}">
+<a class="message-header-stream-settings-button" href="{{stream_settings_link}}">
{{> navbar_icon_and_title }}
</a>
<div class="divider only-visible-for-spectators">|</div>