🐛 Fix time slot checkbox being pushed out of viewport (#1408)

Co-authored-by: Luke Vella <me@lukevella.com>
This commit is contained in:
Simon 2024-10-24 17:14:54 +02:00 committed by GitHub
parent 59e242f2cb
commit fd12f5f0bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,14 +11,13 @@ export interface TimeSlotOptionProps extends PollOptionProps {
const TimeSlotOption: React.FunctionComponent<TimeSlotOptionProps> = ({
startTime,
endTime,
duration,
...rest
}) => {
return (
<PollOption {...rest}>
<div className="flex items-center gap-x-4 text-sm">
<div>{`${startTime} - ${endTime}`}</div>
<div>{startTime}</div>
<div className="flex items-center gap-x-1.5 opacity-50">
<ClockIcon className="size-4" />
{duration}