From 5d9494e33adc927b1685ce8e4e7e00044c6cbc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 18 May 2023 11:44:52 +0800 Subject: Buttons space on classic detail can be customised --- Course/Detail/Classic/Content/Sidebar/Video.ui.qml | 27 +++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'Course/Detail/Classic/Content') 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") + } } } } -- cgit v1.2.3