mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 05:58:25 +00:00
markdown: Rewrite tooltips for <time> elements.
This now uses TippyJS, which enables a more friendly format.
This commit is contained in:
@@ -185,4 +185,14 @@ export function initialize() {
|
||||
placement: "top",
|
||||
appendTo: () => document.body,
|
||||
});
|
||||
|
||||
delegate("body", {
|
||||
target: ".rendered_markdown time",
|
||||
allowHTML: true,
|
||||
placement: "top",
|
||||
appendTo: () => document.body,
|
||||
onHidden(instance) {
|
||||
instance.destroy();
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user