diff options
-rw-r--r-- | DefaultHome.ui.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/DefaultHome.ui.qml b/DefaultHome.ui.qml index 9cf4f08..18b6a6a 100644 --- a/DefaultHome.ui.qml +++ b/DefaultHome.ui.qml @@ -30,8 +30,8 @@ ScrollView { } delegate: Item { - width: counter.cellWidth - height: 125.6 + implicitWidth: counter.cellWidth + implicitHeight: counter.cellHeight Rectangle { color: bgColor radius: 8 @@ -64,9 +64,10 @@ ScrollView { cellWidth: width < 576 ? width : width < 768 ? width / 2 : width < 992 ? width / 3 : width / 4 - cellHeight: cellWidth * 1.3 + cellHeight: 125.6 - height: 100 + height: width < 576 ? cellHeight : width < 768 ? cellHeight * 2 + : width < 992 ? cellHeight * 3 : cellHeight * 4 anchors { top: parent.top left: parent.left |