Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
channel-settings: Show name in "View channel" tooltip.
Sahil Batra476f1f19c616
diff --git a/web/styles/tooltips.css b/web/styles/tooltips.cssindex b3eb461bbe5..a68f69f0377 100644--- a/web/styles/tooltips.css+++ b/web/styles/tooltips.css@@ -101,6 +101,16 @@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}". */+ display: inline-flex;++ .view-channel-text {+ word-break: break-all;+ }+ }+/* If the reference of the tooltip is went offscreen while scrolling,the tooltip will be visible until the scrolling stops. Popper adds`data-reference-hidden` attribute to those tooltips whole reference isdiff --git a/web/templates/stream_settings/selected_stream_title.hbs b/web/templates/stream_settings/selected_stream_title.hbsindex 7e7f1bc2508..20702a50d84 100644--- a/web/templates/stream_settings/selected_stream_title.hbs+++ b/web/templates/stream_settings/selected_stream_title.hbs@@ -7,6 +7,17 @@is_archived=sub.is_archived }}<span class="stream-name-title">{{sub.name}}</span></a>+ <template id="view-stream-tooltip-template">+ <span class="view-channel-tooltip">+ <span class="view-channel-text">+ {{#tr}}+ View <z-channel-name></z-channel-name>+ {{#*inline "z-channel-name"}}{{> ../inline_decorated_channel_name stream=sub}}{{/inline}}+ {{/tr}}+ </span>+ {{tooltip_hotkey_hints "Shift" "V"}}+ </span>+ </template>{{#with sub}}<div class="button-group stream-title-buttons" data-stream-id="{{stream_id}}"><div class="sub_unsub_button_wrapper inline-block {{#unless should_display_subscription_button }}cannot-subscribe-tooltip{{/unless}}" data-tooltip-template-id="cannot-subscribe-tooltip-template">diff --git a/web/templates/tooltip_templates.hbs b/web/templates/tooltip_templates.hbsindex c9b93ef27e3..8bfad4d3216 100644--- a/web/templates/tooltip_templates.hbs+++ b/web/templates/tooltip_templates.hbs@@ -283,10 +283,6 @@{{t 'Unsubscribe from this channel' }}{{tooltip_hotkey_hints "Shift" "S"}}</template>-<template id="view-stream-tooltip-template">- {{t 'View channel' }}- {{tooltip_hotkey_hints "Shift" "V"}}-</template><template id="mobile-push-notification-tooltip-template">{{t 'Mobile push notifications are not enabled on this server.' }}</template>