Elide nicks and userids in read reciepts dialog

This commit is contained in:
Loren Burkholder 2023-02-25 22:25:43 -05:00
parent 0e3453660f
commit eced5c83b4

View file

@ -78,6 +78,8 @@ ApplicationWindow {
anchors.margins: Nheko.paddingSmall
Avatar {
id: avatar
width: Nheko.avatarSize
height: Nheko.avatarSize
userid: model.mxid
@ -88,27 +90,28 @@ 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
}
}
Item {
elideWidth: del.width - Nheko.paddingMedium - avatar.width
Layout.fillWidth: true
}
}
}
CursorShape {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor