From 400d86a1e9ebe0699dd75d0b0a8573ff037c1960 Mon Sep 17 00:00:00 2001 From: James Graham Date: Fri, 15 Jul 2022 15:39:33 +0000 Subject: [PATCH] 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 --- .../NeoChat/Component/Timeline/RichLabel.qml | 2 +- .../Component/Timeline/TimelineContainer.qml | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/imports/NeoChat/Component/Timeline/RichLabel.qml b/imports/NeoChat/Component/Timeline/RichLabel.qml index 5c21d41a5..e8ec6f081 100644 --- a/imports/NeoChat/Component/Timeline/RichLabel.qml +++ b/imports/NeoChat/Component/Timeline/RichLabel.qml @@ -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: "