From d6331aa60f46ceb8d6d5c2019b7d64d6ec16310a Mon Sep 17 00:00:00 2001 From: D33r-Gee Date: Fri, 22 Dec 2023 09:36:02 -0800 Subject: [PATCH] qml: fix the BlockClock's minimum size --- src/qml/components/BlockClock.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qml/components/BlockClock.qml b/src/qml/components/BlockClock.qml index f7210aa534..a02abae6a4 100644 --- a/src/qml/components/BlockClock.qml +++ b/src/qml/components/BlockClock.qml @@ -42,7 +42,8 @@ Item { id: dial anchors.horizontalCenter: root.horizontalCenter scale: Theme.blockclocksize - width: Math.min((root.parentWidth * dial.scale), (root.parentHeight * dial.scale)) + width: {Math.max(Math.min(200, Math.min(root.parentWidth - 30, root.parentHeight - 30)), + Math.min((root.parentWidth * dial.scale), (root.parentHeight * dial.scale)))} height: dial.width penWidth: dial.width / 50 timeRatioList: chainModel.timeRatioList