mirror of https://github.com/zulip/zulip.git
drafts: Use tippy for tooltip.
With a tweak from tabbott to not use tippy on the entire message content; this was a correct port of the apparent old bootstrap-tooltip logic; however, that logic didn't actually work, so we just had `title` behavior. Given that showing a tooltip when hovering over the entire message body feels wrong, we preserve the weird title behavior (which also feels a bit off, but less so).
This commit is contained in:
parent
39bcf8c55a
commit
9c2ec9d7d7
|
@ -32,11 +32,11 @@
|
|||
<div class="messagebox-content">
|
||||
<div class="message_top_line">
|
||||
<div class="draft_controls">
|
||||
<i class="fa fa-pencil fa-lg restore-draft" aria-hidden="true" data-toggle="tooltip" title="{{t 'Restore draft' }}"></i>
|
||||
<i class="fa fa-trash-o fa-lg delete-draft" aria-hidden="true" data-toggle="tooltip" title="{{t 'Delete draft' }} (Backspace)"></i>
|
||||
<i class="fa fa-pencil fa-lg edit-draft tippy-zulip-tooltip" aria-hidden="true" data-tippy-content="{{t 'Restore draft' }}"></i>
|
||||
<i class="fa fa-trash-o fa-lg delete-draft tippy-zulip-tooltip" aria-hidden="true" data-tippy-content="{{t 'Delete draft' }} (Backspace)"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="message_content rendered_markdown restore-draft" data-toggle="tooltip" title="{{t 'Restore draft' }}">{{rendered_markdown content}}</div>
|
||||
<div class="message_content rendered_markdown restore-draft" title="{{t 'Restore draft' }}">{{rendered_markdown content}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue