Fixed minimum sized

This commit is contained in:
Diyou 2024-03-21 06:28:27 +01:00
parent 3d748944da
commit 2e6786bd8d
No known key found for this signature in database
GPG key ID: 74219FC76F60F354

View file

@ -45,8 +45,6 @@ PlasmoidItem {
} }
fullRepresentation: ColumnLayout { fullRepresentation: ColumnLayout {
width: childrenRect.width + 20
height: childrenRect.height + 20
anchors.fill: parent anchors.fill: parent
spacing: -20 spacing: -20
@ -68,8 +66,8 @@ PlasmoidItem {
} }
Item { Item {
width: Math.max(textMetricsClockLabel.width, textMetricsDayLabel.width) implicitWidth: Math.max(textMetricsClockLabel.width, textMetricsDayLabel.width)
height: Math.max(textMetricsClockLabel.height, textMetricsDayLabel.height) implicitHeight: Math.max(textMetricsClockLabel.height, textMetricsDayLabel.height)
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Text { Text {