mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 17:54:01 +00:00
chore: don't let text overflow
set maximum line count + elide + visibility
This commit is contained in:
parent
3fd196323e
commit
2204273a22
@ -271,6 +271,8 @@ Rectangle {
|
||||
visible: !!root.subTitle
|
||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||
loading: root.loading
|
||||
maximumLineCount: 3
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
|
||||
StatusTextWithLoadingState {
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user