From 7ac2a774c9bbb94daba2f4b6cb58b06b07571bf7 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sat, 30 Dec 2023 19:07:54 +0800 Subject: [PATCH] revert play overlay --- src/App.jsx | 40 +++++++++++++++------------------------- 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 5218e62..8338afc 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,7 +1,7 @@ import React, { memo, useEffect, useState, useCallback, useRef, useMemo } from 'react'; -import { FaAngleLeft, FaWindowClose, FaPlay } from 'react-icons/fa'; +import { FaAngleLeft, FaWindowClose } from 'react-icons/fa'; import { MdRotate90DegreesCcw } from 'react-icons/md'; -import { AnimatePresence, motion } from 'framer-motion'; +import { AnimatePresence } from 'framer-motion'; import { ThemeProvider } from 'evergreen-ui'; import useDebounceOld from 'react-use/lib/useDebounce'; // Want to phase out this import { useDebounce } from 'use-debounce'; @@ -2429,31 +2429,21 @@ const App = memo(() => { )} {isFileOpened && ( - <> -
- +
+ - {subtitleStreams.length > 0 && } + {subtitleStreams.length > 0 && } - {!showRightBar && ( - - )} -
- - - {!playing && !bigWaveformEnabled && ( - - - - )} - - + {!showRightBar && ( + + )} +
)}