From a4fd5dab55db6e232da275813de0abac591fe59d 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, 14 Feb 2023 17:19:01 +0800 Subject: Fix popular grid height --- HomeDefault.ui.qml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'HomeDefault.ui.qml') diff --git a/HomeDefault.ui.qml b/HomeDefault.ui.qml index 4521611..2fbf594 100644 --- a/HomeDefault.ui.qml +++ b/HomeDefault.ui.qml @@ -77,10 +77,13 @@ Flickable { : width < 992 ? width / 3 : width / 4 cellHeight: cellWidth * 1.3 - height: width < 576 ? cellHeight * count - : width < 768 ? cellHeight * count / 2 - : width < 992 ? cellHeight * count / 3 - : cellHeight * count / 4 + height: width < 576 + ? cellHeight * count + : width < 768 + ? cellHeight * (count + count % 2) / 2 + : width < 992 + ? cellHeight * (count + (count + 1) % 3) / 3 + : cellHeight * (count + (count + 2) % 4) / 4 anchors { top: counter.bottom left: parent.left -- cgit v1.2.3