Skip to content

Commit d6331aa

Browse files
committed
qml: fix the BlockClock's minimum size
1 parent 67150ef commit d6331aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qml/components/BlockClock.qml

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ Item {
4242
id: dial
4343
anchors.horizontalCenter: root.horizontalCenter
4444
scale: Theme.blockclocksize
45-
width: Math.min((root.parentWidth * dial.scale), (root.parentHeight * dial.scale))
45+
width: {Math.max(Math.min(200, Math.min(root.parentWidth - 30, root.parentHeight - 30)),
46+
Math.min((root.parentWidth * dial.scale), (root.parentHeight * dial.scale)))}
4647
height: dial.width
4748
penWidth: dial.width / 50
4849
timeRatioList: chainModel.timeRatioList

0 commit comments

Comments
 (0)