Skip to content

Commit

Permalink
fix: button alignment in oauth screen (#11931)
Browse files Browse the repository at this point in the history
When an item is in a layout, the width property is ignored, and the
implicitWidth is used. So the copy-to-clipboard button's preferredWidth
should be bound the implicitWidth property of the open-browser button.

Fixes: #11915
  • Loading branch information
erikjv authored Oct 15, 2024
1 parent 04ff7ae commit 1717fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qml/credentials/OAuthCredentials.qml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Credentials {

Button {
id: copyToClipboardButton
Layout.preferredWidth: openBrowserButton.width
Layout.preferredWidth: openBrowserButton.implicitWidth
visible: credentials.isValid

text: qsTr("Copy url")
Expand All @@ -82,7 +82,7 @@ Credentials {
}

Loader {
Layout.preferredWidth: openBrowserButton.width
Layout.preferredWidth: openBrowserButton.implicitWidth
Layout.alignment: Qt.AlignHCenter
sourceComponent: logOutButton
}
Expand Down

0 comments on commit 1717fdc

Please sign in to comment.