summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-12-20 11:18:04 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-12-20 11:18:04 +0800
commit18e29a188f34d79f2bb1e52463df5ecf8973716d (patch)
tree3b2243a66741a9f80a32ecda48da2d2a50e1ae66
parent6fe0624aaa83a87581ee1629d53682939e8f8b1c (diff)
Fix grid view height
and tidy up a bit
-rw-r--r--DefaultHome.ui.qml13
1 files 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