From cc5c097ddc7f8c296caa1d34e01800107e818256 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Sat, 19 Oct 2024 13:34:01 +0200 Subject: [PATCH] refactor: tooltips for time locks --- .../rundown/time-input-flow/TimeInputFlow.tsx | 46 +++++++++++-------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/apps/client/src/features/rundown/time-input-flow/TimeInputFlow.tsx b/apps/client/src/features/rundown/time-input-flow/TimeInputFlow.tsx index 600cd1efb..7f6db42b9 100644 --- a/apps/client/src/features/rundown/time-input-flow/TimeInputFlow.tsx +++ b/apps/client/src/features/rundown/time-input-flow/TimeInputFlow.tsx @@ -66,10 +66,12 @@ const TimeInputFlow = (props: EventBlockTimerProps) => { placeholder='Start' disabled={Boolean(linkStart)} > - handleLink(!linkStart)}> - S - {linkStart ? : } - + + handleLink(!linkStart)}> + S + {linkStart ? : } + + @@ -80,14 +82,16 @@ const TimeInputFlow = (props: EventBlockTimerProps) => { disabled={isLockedDuration} placeholder='End' > - handleChangeStrategy(TimeStrategy.LockEnd)} - data-testid='lock__end' - > - E - {isLockedEnd ? : } - + + handleChangeStrategy(TimeStrategy.LockEnd)} + data-testid='lock__end' + > + E + {isLockedEnd ? : } + + @@ -97,14 +101,16 @@ const TimeInputFlow = (props: EventBlockTimerProps) => { disabled={isLockedEnd} placeholder='Duration' > - handleChangeStrategy(TimeStrategy.LockDuration)} - data-testid='lock__duration' - > - D - {isLockedDuration ? : } - + + handleChangeStrategy(TimeStrategy.LockDuration)} + data-testid='lock__duration' + > + D + {isLockedDuration ? : } + + {overMidnight && (