Skip to content

Commit e30dd08

Browse files
olzzonrjmunro
authored andcommitted
fix: on air button could disappear permanently when scrolling just after the on air button is clicked
1 parent 26455fc commit e30dd08

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

packages/webui/src/client/ui/RundownView/RundownRightHandControls.tsx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -183,20 +183,22 @@ export function RundownRightHandControls(props: Readonly<IProps>): JSX.Element {
183183
>
184184
<RewindAllSegmentsIcon />
185185
</button>
186-
{!props.isFollowingOnAir && (
187-
<button
188-
key="followingOnAir"
189-
className="status-bar__controls__button"
190-
role="button"
191-
onMouseEnter={onOnAirMouseEnter}
192-
onMouseLeave={onOnAirMouseLeave}
193-
onClick={onOnAirClick}
194-
tabIndex={0}
195-
aria-label={t('Go to On Air Segment')}
196-
>
197-
{onAirHover ? <Lottie config={ONAIR_OVER} /> : <Lottie config={ONAIR_OUT} />}
198-
</button>
199-
)}
186+
<div>
187+
{!props.isFollowingOnAir && (
188+
<button
189+
key="followingOnAir"
190+
className="status-bar__controls__button"
191+
role="button"
192+
onMouseEnter={onOnAirMouseEnter}
193+
onMouseLeave={onOnAirMouseLeave}
194+
onClick={onOnAirClick}
195+
tabIndex={0}
196+
aria-label={t('Go to On Air Segment')}
197+
>
198+
{onAirHover ? <Lottie config={ONAIR_OVER} /> : <Lottie config={ONAIR_OUT} />}
199+
</button>
200+
)}
201+
</div>
200202
</AnimatePresence>
201203
</div>
202204
<div className="status-bar__cell status-bar__cell--align-end">

0 commit comments

Comments
 (0)