summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-02-10 17:29:11 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-02-10 17:29:11 +0700
commit0335bb1d660dbca719fefa00aedd6a4e487832ca (patch)
tree57efb8aecc99e32a1522cf8e3c1911c149dc6d36
parent6760588babd61c07761845eb44e4013a7ad51543 (diff)
add spacing and width for buttons
-rw-r--r--ClassicDetailFlickable.ui.qml14
1 files 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"