diff --git a/src/assets/index.css b/src/assets/index.css index d4da37b..36e2976 100644 --- a/src/assets/index.css +++ b/src/assets/index.css @@ -221,16 +221,3 @@ background: transparent; } } - -/* - * Disable enter/exit animations on reka-ui overlays (dialog, sheet, - * popover, dropdown, tooltip, …) app-wide. They animate via the - * data-state open/closed attribute; zeroing the duration keeps the final - * state but removes the motion (overlays appear/disappear instantly). - * Pulse/spin loaders and CSS transitions (e.g. hovers, the favourite - * heart pop) are unaffected. - */ -[data-state='open'], -[data-state='closed'] { - animation-duration: 0s !important; -} diff --git a/src/components/layout/ProfileSheetContent.vue b/src/components/layout/ProfileSheetContent.vue index ce082b7..5bf0122 100644 --- a/src/components/layout/ProfileSheetContent.vue +++ b/src/components/layout/ProfileSheetContent.vue @@ -1,7 +1,7 @@ + + diff --git a/src/modules/events/components/EventCalendarPopup.vue b/src/modules/events/components/EventCalendarPopup.vue deleted file mode 100644 index 9a16173..0000000 --- a/src/modules/events/components/EventCalendarPopup.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/src/modules/events/components/EventCalendarView.vue b/src/modules/events/components/EventCalendarView.vue index f0a70c8..77e0778 100644 --- a/src/modules/events/components/EventCalendarView.vue +++ b/src/modules/events/components/EventCalendarView.vue @@ -12,10 +12,6 @@ import type { Event } from '../types/event' const props = defineProps<{ events: Event[] - /** When true, render only the month grid for date-picking — no - * selected-day events panel — and emit selectDate on every day tap - * (used inside the calendar popup). */ - pickerMode?: boolean }>() const emit = defineEmits<{ @@ -72,21 +68,13 @@ function getDotCount(date: Date): number { return Math.min(getEventsForDay(date).length, 3) } -// Default the selection to today so the calendar opens on today's events -// rather than an empty panel (currentMonth already starts on this month). -const selectedDay = ref(new Date()) +const selectedDay = ref(null) const selectedDayEvents = computed(() => { if (!selectedDay.value) return [] return getEventsForDay(selectedDay.value) }) function selectDay(date: Date) { - // Picker mode: every tap selects + emits (parent closes the popup). - if (props.pickerMode) { - selectedDay.value = date - emit('selectDate', date) - return - } if (selectedDay.value && isSameDay(selectedDay.value, date)) { selectedDay.value = null } else { @@ -107,7 +95,7 @@ function nextMonth() {