Precise time on hover

Implement showing a long datetime as a tooltip when hovering over the timestamp for a message. The timestamp is also moved to just after the username of the poster this means it will not be under the hover buttons unless the message is very short.

Also some cleanup of the alignment of items in the bubble. The reply text is now indented the same amount as the username and message and the padding isn't removed from the username and message when avatars are disabled.

Implements: network/neochat#223
This commit is contained in:
James Graham
2022-07-15 15:39:33 +00:00
committed by Carl Schwan
parent b20b1c10d0
commit 400d86a1e9
2 changed files with 14 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ TextEdit {
Layout.fillWidth: Config.compactLayout
Layout.rightMargin: Kirigami.Units.largeSpacing
Layout.leftMargin: Config.showAvatarInTimeline ? Kirigami.Units.largeSpacing : 0
Layout.leftMargin: Kirigami.Units.largeSpacing
text: "<style>
table {