diff --git a/index.html b/index.html index 1506caa..3ceea3f 100644 --- a/index.html +++ b/index.html @@ -1,12 +1,6 @@ - - + Calendar - - - -
- - - + +
\ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico index df36fcf..4bf8806 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/App.vue b/src/App.vue index 5836a2c..4fceb40 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,10 @@ diff --git a/src/assets/layout.css b/src/assets/layout.css index b12480f..3635ade 100644 --- a/src/assets/layout.css +++ b/src/assets/layout.css @@ -131,7 +131,7 @@ header { overflow: visible; position: absolute; top: 0; - right: 0; + inset-inline-end: 0; width: 100%; } .month-name-label > span { diff --git a/src/components/BaseDialog.vue b/src/components/BaseDialog.vue index de83896..6ce0d8d 100644 --- a/src/components/BaseDialog.vue +++ b/src/components/BaseDialog.vue @@ -79,10 +79,10 @@ const modalStyle = computed(() => { if (modalRef.value && props.modelValue) { const style = { transform: 'none', - left: modalPosition.value.x + 'px', + insetInlineStart: modalPosition.value.x + 'px', top: modalPosition.value.y + 'px', bottom: 'auto', - right: 'auto', + insetInlineEnd: 'auto', } if (hasMoved.value) { style.width = dialogWidth.value ? dialogWidth.value + 'px' : undefined diff --git a/src/components/CalendarDay.vue b/src/components/CalendarDay.vue index fde7669..2cb3773 100644 --- a/src/components/CalendarDay.vue +++ b/src/components/CalendarDay.vue @@ -21,13 +21,10 @@ const props = defineProps({ ]" :data-date="props.day.date" > -

{{ props.day.displayText }}

+

{{ props.day.displayText }}

{{ props.day.lunarPhase }} - -
- - {{ props.day.holiday.name }} - +
+ {{ props.day.holiday.name }}
@@ -35,22 +32,30 @@ const props = defineProps({ diff --git a/src/components/CalendarHeader.vue b/src/components/CalendarHeader.vue index 48f36f0..8f3f3c7 100644 --- a/src/components/CalendarHeader.vue +++ b/src/components/CalendarHeader.vue @@ -78,8 +78,7 @@ function changeYear(y) { const weekdayNames = computed(() => { // Reorder names & weekend flags - const mondayFirstNames = getLocalizedWeekdayNames() - const sundayFirstNames = [mondayFirstNames[6], ...mondayFirstNames.slice(0, 6)] + const sundayFirstNames = getLocalizedWeekdayNames() const reorderedNames = reorderByFirstDay(sundayFirstNames, calendarStore.config.first_day) const reorderedWeekend = reorderByFirstDay(calendarStore.weekend, calendarStore.config.first_day) diff --git a/src/components/CalendarView.vue b/src/components/CalendarView.vue index b2912e6..7a95939 100644 --- a/src/components/CalendarView.vue +++ b/src/components/CalendarView.vue @@ -1,5 +1,5 @@