summaryrefslogtreecommitdiff
path: root/Course/Detail/Classic/Content
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-18 11:44:52 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-18 11:44:52 +0800
commit5d9494e33adc927b1685ce8e4e7e00044c6cbc96 (patch)
tree57b7026967b472f65b920b9e8049be4471d6550d /Course/Detail/Classic/Content
parent2a2c1e58d25e23fb98fa25a09fd5b0bcc863d10c (diff)
Buttons space on classic detail can be customised
Diffstat (limited to 'Course/Detail/Classic/Content')
-rw-r--r--Course/Detail/Classic/Content/Sidebar/Video.ui.qml27
1 files changed, 16 insertions, 11 deletions
diff --git a/Course/Detail/Classic/Content/Sidebar/Video.ui.qml b/Course/Detail/Classic/Content/Sidebar/Video.ui.qml
index 2518da2..d49fc59 100644
--- a/Course/Detail/Classic/Content/Sidebar/Video.ui.qml
+++ b/Course/Detail/Classic/Content/Sidebar/Video.ui.qml
@@ -19,8 +19,7 @@ ColumnLayout {
property alias share: share
property alias shareMenu: shareMenu
property alias shareList: shareList
- property alias trial: trial
- property alias buy: buy
+ property alias buttons: buttons
spacing: 16
Image {
@@ -176,17 +175,23 @@ ColumnLayout {
}
}
- RowLayout {
+ GridView {
+ id: buttons
+ interactive: false
Layout.topMargin: 16
+ Layout.fillWidth: true
+ model: 1
+ delegate: RowLayout {
+ Component.onCompleted: buttons.height = height
+ width: buttons.width
+
+ BtnOutline.Primary {
+ text: qsTr("Free trial")
+ }
- BtnOutline.Primary {
- id: trial
- text: qsTr("Free trial")
- }
-
- Btn.Success {
- id: buy
- text: qsTr("Buy course")
+ Btn.Success {
+ text: qsTr("Buy course")
+ }
}
}
}