mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +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,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 {
|
||||
|
|
Loading…
Reference in a new issue