summaryrefslogtreecommitdiff
path: root/Eduport.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-26 14:40:23 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-26 14:40:23 +0800
commit1f5ff7c520519e7c9eeaf3f168e3adcf9eb5d15b (patch)
tree441d53413a781e0bdd7270382cb3ccbfcf7e834a /Eduport.ui.qml
parent9b4a5725b89c75fb4bd8fa4ecd6bcb4f2b2dedde (diff)
Responsive cell width
Diffstat (limited to 'Eduport.ui.qml')
-rw-r--r--Eduport.ui.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/Eduport.ui.qml b/Eduport.ui.qml
index 5bdd9a7..0154bf5 100644
--- a/Eduport.ui.qml
+++ b/Eduport.ui.qml
@@ -2,7 +2,8 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
GridView {
- cellWidth: parent.width / 2
+ cellWidth: width < 576 ? parent.width : width < 768 ? parent.width / 2
+ : width < 992 ? parent.width / 3 : parent.width / 4
cellHeight: cellWidth
ScrollBar.vertical: ScrollBar {}
}