diff --git a/common/components/MobileVideoOverlay.tsx b/common/components/MobileVideoOverlay.tsx index 4b89010e..9822e4b4 100644 --- a/common/components/MobileVideoOverlay.tsx +++ b/common/components/MobileVideoOverlay.tsx @@ -1,5 +1,4 @@ import React, { useCallback, useMemo, useRef, useState } from 'react'; -import Fade from '@material-ui/core/Fade'; import Grid, { GridProps } from '@material-ui/core/Grid'; import IconButton from '@material-ui/core/IconButton'; import NoteAddIcon from '@material-ui/icons/NoteAdd'; @@ -367,160 +366,140 @@ const MobileVideoOverlay = ({ return ( - - <> - - {onLoadSubtitles && ( - - - - - - - - - - )} - - - {model.emptySubtitleTrack && - model.recordingEnabled && - !model.manualRecordingDisabled ? ( - // Wrap in span so that Tooltip doesn't complain about disabled child. Spacing also looks better. - - - - - - ) : ( - - - - - - )} - - - {!model.emptySubtitleTrack && ( - - - - - {model.subtitlesAreVisible && ( - - )} - {!model.subtitlesAreVisible && ( - - )} - - - - - )} - {!model.emptySubtitleTrack && ( - - - - - - - - - + + {onLoadSubtitles && ( + + + + + + + + + + )} + + + {model.emptySubtitleTrack && model.recordingEnabled && !model.manualRecordingDisabled ? ( + // Wrap in span so that Tooltip doesn't complain about disabled child. Spacing also looks better. + + + + + + ) : ( + + + + + )} - - - - - + + {!model.emptySubtitleTrack && ( + + + + + {model.subtitlesAreVisible && ( + - - - - - - - - - - - - - - - - - - - - {playModeSelectorOpen && ( - + + + + )} + {!model.emptySubtitleTrack && ( + + + + + + + + + + )} + + + + + + + + + + + + - )} - - + + + + + + + + + + + + + {playModeSelectorOpen && ( + + )} ); };