timestamp: Migrate message_time from title to tippyjs tooltip.

This keeps it consistent with other widgets in message body area.

Set the display position to top to be consistent with
compose control buttons.

Changed the tooltip content to be more readable like
Thursday, May 18, 2017
7:12:53 AM India Standard Time

Also changed timerender.get_full_datetime() to consider
users' 24 hour format preference.
This commit is contained in:
Dinesh
2021-06-13 01:40:34 +05:30
committed by Tim Abbott
parent d1b18d2c07
commit c10e56698c
3 changed files with 75 additions and 21 deletions

View File

@@ -145,4 +145,14 @@ export function initialize() {
return true;
},
});
delegate("body", {
target: ".message_time",
allowHTML: true,
placement: "top",
appendTo: () => document.body,
onHidden(instance) {
instance.destroy();
},
});
}