From 0335bb1d660dbca719fefa00aedd6a4e487832ca Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Fri, 10 Feb 2023 17:29:11 +0700 Subject: add spacing and width for buttons --- ClassicDetailFlickable.ui.qml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ClassicDetailFlickable.ui.qml b/ClassicDetailFlickable.ui.qml index 7c18753..b2f8fe0 100644 --- a/ClassicDetailFlickable.ui.qml +++ b/ClassicDetailFlickable.ui.qml @@ -87,7 +87,7 @@ Flickable { Layout.bottomMargin: 16 ColumnLayout { - + spacing: 8 RowLayout { implicitWidth: price.width + originalPrice.width + discountLabel.width Label { @@ -134,20 +134,22 @@ Flickable { text: qsTr("5 days left at this price") font.pixelSize: 14 font.family: "roboto" + color: "#d6293e" } } } } - GridLayout { - columns: flickable.width < 378 ? 1 : 2 - rows: flickable.width < 378 ? 2 : 1 + RowLayout { Layout.bottomMargin: 16 - + Layout.fillWidth: true + spacing: 16 Button { id: trial text: qsTr("Free trial") + Layout.fillWidth: true contentItem: Text { + horizontalAlignment: Text.AlignHCenter text: trial.text font.pixelSize: 14 font.family: "roboto" @@ -165,7 +167,9 @@ Flickable { Button { id: buy text: qsTr("Buy course") + Layout.fillWidth: true contentItem: Text { + horizontalAlignment: Text.AlignHCenter text: buy.text font.pixelSize: 14 font.family: "roboto" -- cgit v1.2.3