diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-26 14:40:23 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-26 14:40:23 +0800 |
commit | 1f5ff7c520519e7c9eeaf3f168e3adcf9eb5d15b (patch) | |
tree | 441d53413a781e0bdd7270382cb3ccbfcf7e834a | |
parent | 9b4a5725b89c75fb4bd8fa4ecd6bcb4f2b2dedde (diff) |
Responsive cell width
-rw-r--r-- | Eduport.ui.qml | 3 |
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 {} } |