From 6abf4d714996b88347f9d398857ece4c68948b8a Mon Sep 17 00:00:00 2001 From: reionwong Date: Fri, 25 Jun 2021 00:40:27 +0800 Subject: [PATCH] Fix control center dialog text width --- qml/CardItem.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qml/CardItem.qml b/qml/CardItem.qml index 8886376..196b537 100644 --- a/qml/CardItem.qml +++ b/qml/CardItem.qml @@ -98,7 +98,7 @@ Item { Layout.preferredHeight: control.height * 0.3 sourceSize: Qt.size(width, height) asynchronous: true - Layout.alignment: Qt.AlignCenter + Layout.alignment: Qt.AlignHCenter Layout.topMargin: FishUI.Units.largeSpacing // ColorOverlay { @@ -129,7 +129,7 @@ Item { elide: Label.ElideRight Layout.preferredHeight: control.height * 0.1 Layout.alignment: Qt.AlignHCenter - // Layout.fillWidth: true + Layout.maximumWidth: control.width - FishUI.Units.largeSpacing Layout.bottomMargin: FishUI.Units.largeSpacing }