Skip to content

The swiss army knife of lossless video/audio editing

Fix issue with drag drop

Mikael Finstad1980bd87280a
diff --git a/src/App.jsx b/src/App.jsx
index 9d7fd070..8f15f45c 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1605,7 +1605,7 @@ const App = memo(() => {
return () => window.removeEventListener('keydown', keyScrollPreventer);
}, []);
- const sideBarWidth = showSideBar ? 200 : 0;
+ const sideBarWidth = showSideBar && isFileOpened ? 200 : 0;
const bottomBarHeight = 96 + ((hasAudio && waveformEnabled) || (hasVideo && thumbnailsEnabled) ? timelineHeight : 0);
@@ -1717,7 +1717,7 @@ const App = memo(() => {
)}
</AnimatePresence>
- <div className="no-user-select" style={{ position: 'absolute', top: topBarHeight, left: 0, right: sideBarWidth, bottom: bottomBarHeight, pointerEvents: 'none' }}>
+ <div className="no-user-select" style={{ position: 'absolute', top: topBarHeight, left: 0, right: sideBarWidth, bottom: bottomBarHeight, visibility: !isFileOpened ? 'hidden' : undefined }}>
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
<video
muted={muted}