mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 02:42:27 +08:00
feat: 🎸 adjust calendar style
This commit is contained in:
parent
f8da7494c8
commit
dece88eef7
@ -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);
|
||||
|
@ -94,6 +94,7 @@
|
||||
}
|
||||
|
||||
.calendar-dropdown-widget .calendar-week-number {
|
||||
color: var(--muted-text-color) !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
@ -317,7 +317,6 @@ body.layout-horizontal > .horizontal {
|
||||
}
|
||||
|
||||
.calendar-dropdown-widget .calendar-header {
|
||||
padding: 8px 0 20px 0;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user