From eced5c83b4b2c14c1ece10b592325804d3f771cb Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Sat, 25 Feb 2023 22:25:43 -0500 Subject: [PATCH] Elide nicks and userids in read reciepts dialog --- resources/qml/dialogs/ReadReceipts.qml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/resources/qml/dialogs/ReadReceipts.qml b/resources/qml/dialogs/ReadReceipts.qml index f90da997..3d23a5fc 100644 --- a/resources/qml/dialogs/ReadReceipts.qml +++ b/resources/qml/dialogs/ReadReceipts.qml @@ -78,6 +78,8 @@ ApplicationWindow { anchors.margins: Nheko.paddingSmall Avatar { + id: avatar + width: Nheko.avatarSize height: Nheko.avatarSize userid: model.mxid @@ -88,25 +90,26 @@ ApplicationWindow { ColumnLayout { spacing: Nheko.paddingSmall + Layout.fillWidth: true - Label { + ElidedLabel { text: model.displayName color: TimelineManager.userColor(model ? model.mxid : "", Nheko.colors.window) font.pointSize: fontMetrics.font.pointSize + elideWidth: del.width - Nheko.paddingMedium - avatar.width + Layout.fillWidth: true } - Label { + ElidedLabel { text: model.timestamp color: Nheko.colors.buttonText font.pointSize: fontMetrics.font.pointSize * 0.9 + elideWidth: del.width - Nheko.paddingMedium - avatar.width + Layout.fillWidth: true } } - Item { - Layout.fillWidth: true - } - } CursorShape {