fix: calendar weeks alignment (#344)

The component's CSS adds additional padding which results in Saturday and Sunday not being aligned with the rest of the days.


---------

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
This commit is contained in:
Greg Sanderson 2024-02-15 12:50:23 +00:00 committed by GitHub
parent 999676aef7
commit 406e4ff8a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 18 deletions

View File

@ -147,16 +147,10 @@ const vCalendarSlots = computed(() => {
@apply mt-4;
}
.calendar .vc-weekdays {
@apply flex;
@apply justify-items-center;
}
.calendar .vc-weekday {
@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;
@apply text-muted-foreground rounded-md font-normal text-[0.8rem];
}
.calendar .vc-weeks {
@apply w-full space-y-2 flex flex-col [&>_div]:grid [&>_div]:grid-cols-7;

View File

@ -148,16 +148,10 @@ const vCalendarSlots = computed(() => {
@apply mt-4;
}
.calendar .vc-weekdays {
@apply flex;
@apply justify-items-center;
}
.calendar .vc-weekday {
@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;
@apply text-muted-foreground rounded-md font-normal text-[0.8rem];
}
.calendar .vc-weeks {
@apply w-full space-y-2 flex flex-col [&>_div]:grid [&>_div]:grid-cols-7;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long