fix: hotfixes
This commit is contained in:
parent
1ec636f3b0
commit
ab869fbc29
5 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
});
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue