mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
fix dynamic button width
This commit is contained in:
parent
b757cc28b8
commit
1918c5e24a
2 changed files with 2 additions and 4 deletions
|
@ -43,8 +43,8 @@ Item {
|
|||
signal clicked()
|
||||
|
||||
// Dynamic label width
|
||||
width: label.contentWidth + 20
|
||||
Layout.minimumWidth: 100
|
||||
Layout.minimumWidth: (label.contentWidth > 100)? label.contentWidth + 20 : 100
|
||||
|
||||
|
||||
|
||||
Rectangle {
|
||||
|
|
|
@ -84,7 +84,6 @@ Rectangle {
|
|||
RowLayout {
|
||||
StandardButton {
|
||||
id: closeWalletButton
|
||||
width: 100
|
||||
text: qsTr("Close wallet") + translationManager.emptyString
|
||||
shadowReleasedColor: "#FF4304"
|
||||
shadowPressedColor: "#B32D00"
|
||||
|
@ -118,7 +117,6 @@ Rectangle {
|
|||
releasedColor: "#FF6C3C"
|
||||
pressedColor: "#FF4304"
|
||||
text: qsTr("Show seed") + translationManager.emptyString
|
||||
Layout.alignment: Qt.AlignRight
|
||||
onClicked: {
|
||||
settingsPasswordDialog.open();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue