fix: Alignment issue on current day vs other days

This commit is contained in:
Corey Woodworth
2025-10-10 22:14:57 -04:00
parent 32c929c943
commit 586e28919c
+6 -4
View File
@@ -87,15 +87,17 @@ NPanel {
// Today day number
NText {
visible: content.isCurrentMonth
opacity: content.isCurrentMonth ? 1.0 : 0.0
Layout.preferredWidth: content.isCurrentMonth ? implicitWidth : 0
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
text: Time.date.getDate()
pointSize: Style.fontSizeXXXL * 1.5 * scaling
font.weight: Style.fontWeightBold
color: Color.mOnPrimary
}
Item {
visible: !content.isCurrentMonth
Behavior on opacity {
NumberAnimation { duration: Style.animationFast }
}
}
// Month, year, location