From 0f2807e6a518c09f4926bc5cda65c1ce3321732d 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: Mon, 3 Apr 2023 09:56:25 +0800 Subject: Fix grid card height --- Course/Grid/Minimal.ui.qml | 4 ++-- Home/Default/Card.ui.qml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Course/Grid/Minimal.ui.qml b/Course/Grid/Minimal.ui.qml index fe7439f..a4ad119 100644 --- a/Course/Grid/Minimal.ui.qml +++ b/Course/Grid/Minimal.ui.qml @@ -42,7 +42,7 @@ Flickable { : main.width < 992 ? width / 3 : width / 4 - cellHeight: cellWidth * 400 / 533 + 273.35 + cellHeight: cellWidth * 400 / 533 + 220.35 model: ListModel { ListElement { image: "https://eduport.webestica.com/assets/images/courses/4by3/08.jpg" @@ -162,7 +162,7 @@ Flickable { badgeBackgroundColor: levelBackgroundColor favorite.checked: liked titleText: title - truncatedText: "" + truncatedVisible: false rating: rate } } diff --git a/Home/Default/Card.ui.qml b/Home/Default/Card.ui.qml index 4f2e309..a87d6cd 100644 --- a/Home/Default/Card.ui.qml +++ b/Home/Default/Card.ui.qml @@ -21,6 +21,7 @@ Item { property string titleText: "Build Responsive Websites with HTML" property alias titleArea: titleArea property string truncatedText: "Far advanced settling say finished raillery. Offered chiefly farther" + property bool truncatedVisible: true property real rating: 4.0 DrpShdw.Box { @@ -142,6 +143,7 @@ Item { text: truncatedText elide: Text.ElideRight maximumLineCount: 2 + visible: truncatedVisible Layout.fillWidth: true Layout.bottomMargin: 8 } -- cgit v1.2.3