mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 14:26:34 +00:00
fix(StatusQ/StatusBaseButton): use Layout.*
properties properly
fixes: #10480
This commit is contained in:
parent
90acfa0457
commit
606598735e
@ -125,8 +125,6 @@ Button {
|
||||
id: text
|
||||
|
||||
StatusBaseText {
|
||||
Layout.alignment: root.textAlignment
|
||||
Layout.fillWidth: root.textFillWidth
|
||||
opacity: !root.loading
|
||||
font: root.font
|
||||
text: root.text
|
||||
@ -136,6 +134,8 @@ Button {
|
||||
}
|
||||
|
||||
Loader {
|
||||
Layout.alignment: root.textAlignment
|
||||
Layout.fillWidth: root.textFillWidth
|
||||
active: root.textPosition === StatusBaseButton.TextPosition.Left && !d.iconOnly
|
||||
visible: active
|
||||
sourceComponent: text
|
||||
@ -159,6 +159,8 @@ Button {
|
||||
}
|
||||
|
||||
Loader {
|
||||
Layout.alignment: root.textAlignment
|
||||
Layout.fillWidth: root.textFillWidth
|
||||
active: root.textPosition === StatusBaseButton.TextPosition.Right && !d.iconOnly
|
||||
visible: active
|
||||
sourceComponent: text
|
||||
|
Loading…
x
Reference in New Issue
Block a user