fix: hotfixes
All checks were successful
container-scan / Container Scan (pull_request) Successful in 2m33s
docker-build / docker (pull_request) Successful in 3m53s
tests / Tests (pull_request) Successful in 3m47s

This commit is contained in:
Dominik 2025-07-01 10:52:45 +02:00
parent 1ec636f3b0
commit ab869fbc29
Signed by: dominik
GPG key ID: 06A4003FC5049644
5 changed files with 14 additions and 4 deletions

View file

@ -27,7 +27,7 @@ export default function BlockedSlots() {
{/* Scrollable blocked slot list */}
<div className='w-full flex justify-center overflow-hidden'>
<div className='grid gap-8 w-[max(90%, 500px)] p-6 overflow-y-auto'>
<div className='grid gap-8 p-6 overflow-y-auto'>
{blockedSlots.length > 0 ? (
blockedSlots.map((slot) => (
<BlockedSlotListEntry

View file

@ -28,7 +28,7 @@ export default function Events() {
{/* Scrollable event list */}
<div className='w-full flex justify-center overflow-hidden'>
<div className='grid gap-8 w-[90%] sm:w-[80%] lg:w-[60%] xl:w-[50%] p-6 overflow-y-auto'>
<div className='grid gap-8 not-visited:p-6 overflow-y-auto'>
{events.length > 0 ? (
events.map((event) => (
<EventListEntry

View file

@ -25,6 +25,14 @@ export const BlockedSlotsSchema = zod
created_at: zod.date(),
updated_at: zod.date(),
})
.refine(
(data) => {
return new Date(data.start_time) < new Date(data.end_time);
},
{
message: 'Start time must be before end time',
},
)
.openapi('BlockedSlotsSchema', {
description: 'Blocked time slot in the user calendar',
});

View file

@ -42,7 +42,9 @@ export default async function LoginPage() {
<CardContent className='gap-6 flex flex-col items-center'>
<LoginForm />
<Separator className='h-[1px] rounded-sm w-[60%] bg-border' />
{providerMap.length > 0 && !process.env.DISABLE_PASSWORD_LOGIN ? (
<Separator className='h-[1px] rounded-sm w-[60%] bg-border' />
) : null}
{providerMap.map((provider) => (
<SSOLogin

View file

@ -242,7 +242,7 @@ const EventForm: React.FC<EventFormProps> = (props) => {
</div>
<div className='w-0 sm:w-[50px]'></div>
</div>
<div className='grid grid-cols-4 gap-4 h-full w-full max-lg:grid-cols-2 max-sm:grid-cols-1'>
<div className='grid grid-cols-4 gap-4 h-full w-full max-2xl:grid-cols-2 max-sm:grid-cols-1'>
<div>
<TimePicker
dateLabel='start Time'