From ea875d615986dbde87f26e3851104d8a565d3dba Mon Sep 17 00:00:00 2001 From: JacksonBowe Date: Mon, 22 Jan 2024 07:49:13 +1000 Subject: [PATCH] fix weekdays spacing --- .../src/lib/registry/default/ui/calendar/Calendar.vue | 8 +++++++- .../src/lib/registry/new-york/ui/calendar/Calendar.vue | 10 ++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue b/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue index f3c11d83..6faa5de6 100644 --- a/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue +++ b/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue @@ -125,7 +125,13 @@ const vCalendarSlots = computed(() => { @apply flex; } .calendar .vc-weekday { - @apply text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]; + @apply text-muted-foreground rounded-md w-full font-normal text-[0.8rem]; +} +.calendar .vc-weekday-1 { + @apply pr-3; +} +.calendar .vc-weekday-7 { + @apply pl-3; } .calendar .vc-weeks { @apply w-full space-y-2 flex flex-col [&>_div]:grid [&>_div]:grid-cols-7; diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue b/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue index f5241ea2..5ce5da06 100644 --- a/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue +++ b/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue @@ -124,8 +124,14 @@ const vCalendarSlots = computed(() => { @apply flex; } .calendar .vc-weekday { - @apply text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]; -} + @apply text-muted-foreground rounded-md w-full font-normal text-[0.8rem]; + } + .calendar .vc-weekday-1 { + @apply pr-3; + } + .calendar .vc-weekday-7 { + @apply pl-3; + } .calendar .vc-weeks { @apply w-full space-y-2 flex flex-col [&>_div]:grid [&>_div]:grid-cols-7; }