Commit 2e8fbfbc authored by Janet Blackquill's avatar Janet Blackquill 🌈
Browse files

kcms/users: elide text that can't fit in users list

Turns out people can have really long names. Who would have thought?

BUG: 435700
FIXED-IN: 5.21.5
(cherry picked from commit ec77fa22)
parent 750a264c
......@@ -72,7 +72,7 @@ KCM.ScrollViewKCM {
delegate: Kirigami.AbstractListItem {
width: userList.width
Kirigami.Theme.colorSet: highlighted ? Kirigami.Theme.Selection : Kirigami.Theme.View
contentItem: Row {
contentItem: RowLayout {
spacing: Kirigami.Units.largeSpacing
Rectangle {
......@@ -95,15 +95,22 @@ KCM.ScrollViewKCM {
}
}
Column {
ColumnLayout {
id: col
Layout.fillWidth: true
Kirigami.Heading {
level: 3
text: model.display
elide: Text.ElideMiddle
Layout.fillWidth: true
}
QQC2.Label {
text: model.name
opacity: 0.8
elide: Text.ElideMiddle
Layout.fillWidth: true
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment