From 18e29a188f34d79f2bb1e52463df5ecf8973716d 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: Tue, 20 Dec 2022 11:18:04 +0800 Subject: Fix grid view height and tidy up a bit --- DefaultHome.ui.qml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/DefaultHome.ui.qml b/DefaultHome.ui.qml index 7ed3d4d..d83e5a5 100644 --- a/DefaultHome.ui.qml +++ b/DefaultHome.ui.qml @@ -55,13 +55,16 @@ Flickable { id: popularCourseTabsContent interactive: false - cellWidth: width < 576 ? width : width < 768 ? width / 2 - : width < 992 ? width / 3 : width / 4 + cellWidth: width < 576 ? width + : width < 768 ? width / 2 + : width < 992 ? width / 3 + : width / 4 cellHeight: cellWidth * 1.3 - height: width < 576 ? cellHeight * 4 - : width < 768 ? cellHeight * 3 - : width < 992 ? cellHeight * 2 : cellHeight + height: width < 576 ? cellHeight * count + : width < 768 ? cellHeight * count / 2 + : width < 992 ? cellHeight * count / 3 + : cellHeight * count / 4 anchors { top: counter.bottom left: parent.left -- cgit v1.2.3