Skip to content

Commit

Permalink
fix: always show inspector if widescreen (#19836)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Jan 18, 2024
1 parent c869841 commit a1dfb21
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,17 @@ export function SessionRecordingPlayer(props: SessionRecordingPlayerProps): JSX.
)
}

const isWidescreen = !isFullScreen && size === 'medium'

return (
<BindLogic logic={sessionRecordingPlayerLogic} props={logicProps}>
<div
ref={playerRef}
className={clsx('SessionRecordingPlayer', {
'SessionRecordingPlayer--fullscreen': isFullScreen,
'SessionRecordingPlayer--no-border': noBorder,
'SessionRecordingPlayer--widescreen': !isFullScreen && size === 'medium',
'SessionRecordingPlayer--inspector-focus': inspectorFocus,
'SessionRecordingPlayer--widescreen': isWidescreen,
'SessionRecordingPlayer--inspector-focus': inspectorFocus || isWidescreen,
'SessionRecordingPlayer--inspector-hidden': noInspector || size === 'tiny',
'SessionRecordingPlayer--buffering': isBuffering,
})}
Expand Down

0 comments on commit a1dfb21

Please sign in to comment.