Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inbox, recent: Use a long hover delay for the 'Mark as read' tooltip.
Alya Abbott29356d29dd0b
diff --git a/web/src/tippyjs.ts b/web/src/tippyjs.tsindex dc55223e3ab..fe58168ee49 100644--- a/web/src/tippyjs.ts+++ b/web/src/tippyjs.ts@@ -1031,6 +1031,7 @@ export function initialize(): void {tippy.delegate("body", {target: "#recent-view-content-tbody .on_hover_topic_read",+ delay: LONG_HOVER_DELAY,popperOptions: {modifiers: [{diff --git a/web/templates/inbox_view/inbox_row.hbs b/web/templates/inbox_view/inbox_row.hbsindex da182bdd737..e155cdbc8dd 100644--- a/web/templates/inbox_view/inbox_row.hbs+++ b/web/templates/inbox_view/inbox_row.hbs@@ -22,7 +22,7 @@{{#unless has_unread_mention}}hidden{{/unless}}"data-tippy-content="{{t 'You have unread mentions' }}">@</span><div class="unread-count-focus-outline" tabindex="0" data-col-index="{{ column_indexes.UNREAD_COUNT }}">- <span class="unread_count tippy-zulip-tooltip on_hover_dm_read"+ <span class="unread_count tippy-zulip-delayed-tooltip on_hover_dm_read"data-user-ids-string="{{user_ids_string}}" data-tippy-content="{{t 'Mark as read' }}"aria-label="{{t 'Mark as read' }}">{{unread_count}}</span></div>@@ -35,7 +35,7 @@data-tippy-content="{{t 'You have unread mentions'}}">@</span>{{#unless (or (eq unread_count undefined) (eq unread_count 0))}}<div class="unread-count-focus-outline" tabindex="0" data-col-index="{{ column_indexes.UNREAD_COUNT }}">- <span class="unread_count tippy-zulip-tooltip on_hover_topic_read"+ <span class="unread_count tippy-zulip-delayed-tooltip on_hover_topic_read"data-stream-id="{{stream_id}}" data-topic-name="{{topic_name}}"data-tippy-content="{{t 'Mark as read' }}" aria-label="{{t 'Mark as read' }}">{{unread_count}}diff --git a/web/templates/inbox_view/inbox_stream_header_row.hbs b/web/templates/inbox_view/inbox_stream_header_row.hbsindex d5d26ba8ae1..1afc82683cc 100644--- a/web/templates/inbox_view/inbox_stream_header_row.hbs+++ b/web/templates/inbox_view/inbox_stream_header_row.hbs@@ -18,7 +18,7 @@{{#unless mention_in_unread}}hidden{{/unless}}"data-tippy-content="{{t 'You have unread mentions'}}">@</span><div class="unread-count-focus-outline" tabindex="0" data-col-index="{{ column_indexes.UNREAD_COUNT }}">- <span class="unread_count tippy-zulip-tooltip on_hover_topic_read"+ <span class="unread_count tippy-zulip-delayed-tooltip on_hover_topic_read"data-stream-id="{{stream_id}}" data-tippy-content="{{t 'Mark as read' }}"aria-label="{{t 'Mark as read' }}">{{unread_count}}</span></div>