diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-04-03 09:56:25 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-04-03 09:56:25 +0800 |
commit | 0f2807e6a518c09f4926bc5cda65c1ce3321732d (patch) | |
tree | b281ad3a7a0f6825763ec7ca304f61960e2129a6 | |
parent | eccb66c5328418904fcdcfbe6221c82a2454a3b7 (diff) |
Fix grid card height
-rw-r--r-- | Course/Grid/Minimal.ui.qml | 4 | ||||
-rw-r--r-- | 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 } |