mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 04:28:49 +03:00
Elide nicks and userids in read reciepts dialog
This commit is contained in:
parent
0e3453660f
commit
eced5c83b4
1 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue