diff --git a/resources/js/components/ui/Calendar/Calendar.vue b/resources/js/components/ui/Calendar/Calendar.vue index 56785b58777..469825c1408 100644 --- a/resources/js/components/ui/Calendar/Calendar.vue +++ b/resources/js/components/ui/Calendar/Calendar.vue @@ -74,6 +74,20 @@ const gridStyle = computed(() => { 'grid-template-rows': 'auto' }; }); + +/** Popover uses slight negative inset to align with card; inline skips that inside padded layouts. */ +const calendarHeaderClass = computed(() => + props.inline + ? 'flex items-center justify-between pb-3.5 ms-1 -me-1.5 -mt-1' + : 'flex items-center justify-between ps-3.5 pe-1 pb-3.5 -mt-1.5', +); + +/** Month grid wrapper: popover matches narrow card; inline allows shrink in tight form layouts. */ +const calendarGridClass = computed(() => + props.inline + ? 'w-full border-collapse space-y-1 select-none -ms-2' + : 'w-full border-collapse space-y-1 select-none', +);