ソースを参照

just use padding to ensure a good width for "Sync now" button

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Matthieu Gallien 2 年 前
コミット
1accd60b86
1 ファイル変更2 行追加4 行削除
  1. 2 4
      src/gui/tray/SyncStatus.qml

+ 2 - 4
src/gui/tray/SyncStatus.qml

@@ -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