summaryrefslogtreecommitdiff
path: root/CourseDetailClassicVideo.ui.qml
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-03-03 22:05:05 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-03-03 22:05:05 +0700
commit388314f9310e0630b7763b6fdae6bf70d977b4c5 (patch)
treefd8d62b6330e034e554d8f55ecbcc103531a3d87 /CourseDetailClassicVideo.ui.qml
parente8db9455c7cf9ca06d0ae4472ceaf1958a2d366d (diff)
add minimum height, fixed margin and remove fillHeight
Diffstat (limited to 'CourseDetailClassicVideo.ui.qml')
-rw-r--r--CourseDetailClassicVideo.ui.qml11
1 files changed, 7 insertions, 4 deletions
diff --git a/CourseDetailClassicVideo.ui.qml b/CourseDetailClassicVideo.ui.qml
index 9fff5c2..3939846 100644
--- a/CourseDetailClassicVideo.ui.qml
+++ b/CourseDetailClassicVideo.ui.qml
@@ -4,6 +4,8 @@ import QtQuick.Layouts 1.15
import QtGraphicalEffects 1.15
Item{
+ Layout.minimumHeight: courseVideoCard.height
+ Layout.minimumWidth: courseVideoCard.width
DropShadow {
color: "#4d000000"
source: courseVideoCard
@@ -14,6 +16,8 @@ Item{
}
Rectangle {
id: courseVideoCard
+ Layout.minimumHeight: courseDetailVideo.height
+ Layout.minimumWidth: courseDetailVideo.width
radius: 8
anchors.fill: parent
anchors.rightMargin: 8
@@ -30,8 +34,8 @@ Item{
Layout.leftMargin: 8
Layout.bottomMargin: 0
Layout.topMargin: 8
- Layout.minimumHeight: 250
- Layout.minimumWidth: 350
+ Layout.minimumHeight: 250/2
+ Layout.minimumWidth: 350/2
Layout.fillHeight: true
Layout.fillWidth: true
Image {
@@ -72,7 +76,7 @@ Item{
spacing: 8
Layout.rightMargin: 16
Layout.leftMargin: 16
- Layout.topMargin: 16
+ Layout.topMargin: 8
Layout.bottomMargin: 4
Label {
id: publishedPrice
@@ -92,7 +96,6 @@ Item{
verticalAlignment: Text.AlignVCenter
font.pointSize: 16
font.family: "Roboto"
- Layout.fillHeight: true
}
Label{
id: discount