Skip to content

Commit

Permalink
Center video controls
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Benz committed Oct 2, 2023
1 parent dbbde9c commit bfc0af6
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions src/main/VideoControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,11 @@ const VideoControls: React.FC<{
...(flexGapReplacementStyle(30, false)),
})

const leftSideBoxStyle = css({
width: '100%',
display: 'flex',
justifyContent: 'flex-end'
})

const rightSideBoxStyle = css({
width: '100%',
display: 'flex',
justifyContent: 'flex-start'
})

return (
<div css={videoControlsRowStyle}>
<div css={leftSideBoxStyle}>
<TimeDisplay
selectCurrentlyAt={selectCurrentlyAt}
/>
</div>
<TimeDisplay
selectCurrentlyAt={selectCurrentlyAt}
/>
<PlayButton
selectIsPlaying={selectIsPlaying}
setIsPlaying={setIsPlaying}
Expand All @@ -95,12 +81,10 @@ const VideoControls: React.FC<{
selectVolume={selectVolume}
setVolume={setVolume}
/>
<div css={rightSideBoxStyle}>
<PreviewMode
selectIsPlayPreview={selectIsPlayPreview}
setIsPlayPreview={setIsPlayPreview}
/>
</div>
<PreviewMode
selectIsPlayPreview={selectIsPlayPreview}
setIsPlayPreview={setIsPlayPreview}
/>
</div>
);
}
Expand Down

0 comments on commit bfc0af6

Please sign in to comment.