Improve time selection layout for better user experience

Adjusts the width of scrollable areas within the DateTimePicker component, specifically for hours and minutes, to ensure proper alignment and visibility on various screen sizes.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/sCmMzVy
This commit is contained in:
michaelschal committed 2025-10-28 16:09:13 +00:00
1 parent 37813c1851
commit f5673c8ef5
1 file changed
+3 -3
+3 -3
View File
@@ -135,9 +135,9 @@ export function DateTimePicker({ value, onChange, occupiedDates = [], placeholde
{String(selectedHour).padStart(2, '0')}:{String(selectedMinute).padStart(2, '0')}
</Button>
</PopoverTrigger>
<PopoverContent className="w-auto max-w-[280px] p-0" align="start">
<PopoverContent className="w-[200px] p-0" align="start">
<div className="flex">
<ScrollArea className="h-48">
<ScrollArea className="h-48 w-24">
<div className="p-1.5">
<div className="text-[10px] font-semibold mb-1.5 px-1.5 text-muted-foreground">Heures</div>
{hours.map((hour) => (
@@ -160,7 +160,7 @@ export function DateTimePicker({ value, onChange, occupiedDates = [], placeholde
))}
</div>
</ScrollArea>
<ScrollArea className="h-48 border-l">
<ScrollArea className="h-48 w-20 border-l">
<div className="p-1.5">
<div className="text-[10px] font-semibold mb-1.5 px-1.5 text-muted-foreground">Minutes</div>
{minutes.map((minute) => (