From 1f5ff7c520519e7c9eeaf3f168e3adcf9eb5d15b 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: Mon, 26 Sep 2022 14:40:23 +0800 Subject: Responsive cell width --- Eduport.ui.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {} } -- cgit v1.2.3