tooltips: Use tippy tooltips for drafts and schedule message overlays.

Fixes #25892
This commit is contained in:
Hardik Dharmani 2023-06-07 22:57:02 +05:30 committed by Tim Abbott
parent a68edd5b56
commit e549c416db
3 changed files with 3 additions and 2 deletions

View File

@ -953,6 +953,7 @@ div.overlay {
padding: 10px;
.message_content {
cursor: pointer;
grid-column: 1 / 2;
/* to space from restore draft button */
margin-right: 5px;

View File

@ -39,7 +39,7 @@
<i class="fa fa-trash-o fa-lg delete-draft delete-overlay-message tippy-zulip-tooltip" aria-hidden="true" data-tooltip-template-id="delete-draft-tooltip-template"></i>
</div>
</div>
<div class="message_content rendered_markdown restore-draft restore-overlay-message" title="{{t 'Restore draft' }}">{{rendered_markdown content}}</div>
<div class="message_content rendered_markdown restore-draft restore-overlay-message tippy-zulip-delayed-tooltip" data-tooltip-template-id="restore-draft-tooltip-template">{{rendered_markdown content}}</div>
</div>
</div>
</div>

View File

@ -40,7 +40,7 @@
<i class="fa fa-trash-o fa-lg delete-overlay-message tippy-zulip-tooltip" aria-hidden="true" data-tooltip-template-id="delete-scheduled-message-tooltip-template"></i>
</div>
</div>
<div class="message_content rendered_markdown restore-overlay-message" title="{{t 'Edit or reschedule message' }}">{{rendered_markdown rendered_content}}</div>
<div class="message_content rendered_markdown restore-overlay-message tippy-zulip-delayed-tooltip" data-tooltip-template-id="restore-scheduled-message-tooltip-template">{{rendered_markdown rendered_content}}</div>
</div>
</div>
</div>