chore: don't let text overflow

set maximum line count + elide + visibility
This commit is contained in:
Lukáš Tinkl 2023-02-28 16:03:06 +01:00 committed by Lukáš Tinkl
parent 3fd196323e
commit 2204273a22
2 changed files with 4 additions and 1 deletions

View File

@ -271,6 +271,8 @@ Rectangle {
visible: !!root.subTitle
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
loading: root.loading
maximumLineCount: 3
elide: Text.ElideRight
}
StatusTextWithLoadingState {

View File

@ -127,10 +127,11 @@ Button {
StatusBaseText {
Layout.alignment: root.textAlignment
Layout.fillWidth: root.textFillWidth
opacity: !loading
opacity: !root.loading
font: root.font
text: root.text
color: d.textColor
visible: text
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}