summaryrefslogtreecommitdiff
path: root/HomeDefault.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-14 17:19:01 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-14 17:19:01 +0800
commita4fd5dab55db6e232da275813de0abac591fe59d (patch)
treef8a2501f43ea7c85a841db232650dc8f32f9efec /HomeDefault.ui.qml
parentff2736010fb98faf42b6407b283442755df56ca0 (diff)
Fix popular grid height
Diffstat (limited to 'HomeDefault.ui.qml')
-rw-r--r--HomeDefault.ui.qml11
1 files changed, 7 insertions, 4 deletions
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