refactor: time input labels on hover (#1855)

This commit is contained in:
Shobhit Nagpal
2025-11-11 11:12:55 +05:30
committed by GitHub
parent 47ba90f191
commit 70846aefbe
4 changed files with 44 additions and 4 deletions
@@ -134,6 +134,13 @@ $skip-opacity: 0.2;
height: 100%;
}
.eventTimers.editMode:hover {
[class*="hoverLabel"] {
opacity: 1;
transition: opacity 0.15s 0.5s ease;
}
}
.chipSection {
grid-area: chip;
}
@@ -10,10 +10,12 @@ import {
IoTime,
} from 'react-icons/io5';
import { LuArrowDownToLine } from 'react-icons/lu';
import { useSessionStorage } from '@mantine/hooks';
import { EndAction, Playback, TimerType, TimeStrategy } from 'ontime-types';
import Tooltip from '../../../common/components/tooltip/Tooltip';
import { cx } from '../../../common/utils/styleUtils';
import { AppMode, sessionKeys } from '../../../ontimeConfig';
import TitleEditor from '../common/TitleEditor';
import TimeInputFlow from '../time-input-flow/TimeInputFlow';
@@ -76,6 +78,11 @@ function RundownEventInner({
}: RundownEventInnerProps) {
const [renderInner, setRenderInner] = useState(false);
const [editorMode] = useSessionStorage({
key: sessionKeys.editorMode,
defaultValue: AppMode.Edit,
});
useEffect(() => {
setRenderInner(true);
}, []);
@@ -92,7 +99,7 @@ function RundownEventInner({
return !renderInner ? null : (
<>
<div className={style.eventTimers}>
<div className={cx([style.eventTimers, editorMode === AppMode.Edit && style.editMode])}>
<TimeInputFlow
eventId={eventId}
timeStart={timeStart}