From 1f5ff7c520519e7c9eeaf3f168e3adcf9eb5d15b Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ 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.3