Skip to content

Commit df5bfc7

Browse files
Mobile: Fix event creation card overflow on narrow screens (#40)
* Initial plan * fix: constrain event creation card grids on mobile with grid-cols-1 Agent-Logs-Url: https://github.com/felixgollnhuber/tempoll/sessions/55c97a58-4f4a-4e89-b3ce-f236255c934e Co-authored-by: felixgollnhuber <67237212+felixgollnhuber@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: felixgollnhuber <67237212+felixgollnhuber@users.noreply.github.com>
1 parent dd84489 commit df5bfc7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/create-event-form.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export function CreateEventForm({ timezones, timeOptions }: CreateEventFormProps
312312
}
313313

314314
return (
315-
<div className="grid gap-6 xl:grid-cols-[minmax(0,1fr)_320px]">
315+
<div className="grid grid-cols-1 gap-6 xl:grid-cols-[minmax(0,1fr)_320px]">
316316
<Card>
317317
<CardHeader className="space-y-2">
318318
<CardTitle className="text-2xl">{messages.createEvent.eventDetailsTitle}</CardTitle>
@@ -346,7 +346,7 @@ export function CreateEventForm({ timezones, timeOptions }: CreateEventFormProps
346346
) : null}
347347
</div>
348348

349-
<div className="grid gap-4 md:grid-cols-2">
349+
<div className="grid grid-cols-1 gap-4 md:grid-cols-2">
350350
<div className="space-y-2">
351351
<Label htmlFor={eventFieldIds.timezone}>{messages.createEvent.timezoneLabel}</Label>
352352
<Select
@@ -482,7 +482,7 @@ export function CreateEventForm({ timezones, timeOptions }: CreateEventFormProps
482482

483483
<Separator />
484484

485-
<div className="grid gap-4 md:grid-cols-2">
485+
<div className="grid grid-cols-1 gap-4 md:grid-cols-2">
486486
<div className="space-y-2">
487487
<Label htmlFor={eventFieldIds.dayStartMinutes}>{messages.createEvent.dailyStartLabel}</Label>
488488
<Select

0 commit comments

Comments
 (0)