feat: 🎸 adjust calendar style

This commit is contained in:
Jin 2025-03-31 18:53:17 +02:00
parent f8da7494c8
commit dece88eef7
3 changed files with 3 additions and 3 deletions

View File

@ -287,8 +287,8 @@ export default class CalendarWidget extends RightDropdownButtonWidget {
}
createWeekNumber(weekNumber: number) {
const weekNumberText = 'W' + String(weekNumber).padStart(2, '0');
const $newWeekNumber = $("<a>").addClass("calendar-date calendar-week-number").attr("data-calendar-week-number", weekNumberText);
const weekNumberText = String(weekNumber);
const $newWeekNumber = $("<a>").addClass("calendar-date calendar-week-number").attr("data-calendar-week-number", 'W' + weekNumberText.padStart(2, '0'));
const $weekNumber = $("<span>").html(weekNumberText);
$newWeekNumber.append($weekNumber);

View File

@ -94,6 +94,7 @@
}
.calendar-dropdown-widget .calendar-week-number {
color: var(--muted-text-color) !important;
position: relative;
}

View File

@ -317,7 +317,6 @@ body.layout-horizontal > .horizontal {
}
.calendar-dropdown-widget .calendar-header {
padding: 8px 0 20px 0;
gap: 10px;
}