From 91d5bedff7e00a3baaae8240d577bbc34f9e9082 Mon Sep 17 00:00:00 2001 From: ChungZH Date: Sun, 13 Jun 2021 21:50:13 +0800 Subject: [PATCH] fix: CreateFolderDialog spacing --- qml/Dialogs/CreateFolderDialog.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qml/Dialogs/CreateFolderDialog.qml b/qml/Dialogs/CreateFolderDialog.qml index c52898f..9cbbb55 100644 --- a/qml/Dialogs/CreateFolderDialog.qml +++ b/qml/Dialogs/CreateFolderDialog.qml @@ -1,3 +1,5 @@ + + /* * Copyright (C) 2021 CutefishOS Team. * @@ -16,7 +18,6 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Window 2.12 @@ -31,7 +32,7 @@ Window { visible: true width: 400 + FishUI.Units.largeSpacing * 2 - height: _mainLayout.implicitHeight + FishUI.Units.largeSpacing + height: _mainLayout.implicitHeight + FishUI.Units.largeSpacing * 2 minimumWidth: width minimumHeight: height @@ -46,9 +47,7 @@ Window { ColumnLayout { id: _mainLayout anchors.fill: parent - anchors.leftMargin: FishUI.Units.largeSpacing - anchors.rightMargin: FishUI.Units.largeSpacing - anchors.bottomMargin: FishUI.Units.largeSpacing + anchors.margins: FishUI.Units.largeSpacing spacing: FishUI.Units.largeSpacing TextField {