just use padding to ensure a good width for "Sync now" button
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 17 May 2023 15:40:00 +0000 (17:40 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 17 May 2023 16:16:11 +0000 (18:16 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/tray/SyncStatus.qml

index 40167322c89688e3ef5c2648fa394d2a5272aaa2..fccf41cd39e227b25d71facbf008684d273da2e1 100644 (file)
@@ -109,13 +109,11 @@ RowLayout {
             font: syncNowButton.contentsFont
         }
 
-        Layout.preferredWidth: syncNowFm.boundingRect(text).width +
-                               leftPadding +
-                               rightPadding +
-                               Style.standardSpacing * 2
         Layout.rightMargin: Style.trayHorizontalMargin
 
         text: qsTr("Sync now")
+
+        padding: Style.smallSpacing
         textColor: Style.adjustedCurrentUserHeaderColor
         textColorHovered: Style.currentUserHeaderTextColor
         contentsFont.bold: true