diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2023-02-25 22:25:43 -0500 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2023-02-28 20:40:22 -0500 |
commit | eced5c83b4b2c14c1ece10b592325804d3f771cb (patch) | |
tree | f5bb44a53ab4c42fb45fac70e614ca06ceb84a0c /resources/qml/dialogs | |
parent | Prevent long nicks/userids from breaking roomlist layout (diff) | |
download | nheko-eced5c83b4b2c14c1ece10b592325804d3f771cb.tar.xz |
Elide nicks and userids in read reciepts dialog
Diffstat (limited to 'resources/qml/dialogs')
-rw-r--r-- | resources/qml/dialogs/ReadReceipts.qml | 15 |
1 files 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 { |