diff --git a/frontend-tools/video-editor/client/src/components/EditingTools.tsx b/frontend-tools/video-editor/client/src/components/EditingTools.tsx index 8f5ca165..c1fe8085 100644 --- a/frontend-tools/video-editor/client/src/components/EditingTools.tsx +++ b/frontend-tools/video-editor/client/src/components/EditingTools.tsx @@ -1,5 +1,5 @@ -import '../styles/EditingTools.css'; -import { useEffect, useState } from 'react'; +import "../styles/EditingTools.css"; +import { useEffect, useState } from "react"; interface EditingToolsProps { onSplit: () => void; @@ -24,7 +24,7 @@ const EditingTools = ({ canUndo, canRedo, isPlaying = false, - isPlayingSegments = false, + isPlayingSegments = false }: EditingToolsProps) => { const [isSmallScreen, setIsSmallScreen] = useState(false); @@ -34,17 +34,17 @@ const EditingTools = ({ }; checkScreenSize(); - window.addEventListener('resize', checkScreenSize); - return () => window.removeEventListener('resize', checkScreenSize); + window.addEventListener("resize", checkScreenSize); + return () => window.removeEventListener("resize", checkScreenSize); }, []); // Handle play button click with iOS fix const handlePlay = () => { // Ensure lastSeekedPosition is used when play is clicked - if (typeof window !== 'undefined') { + if (typeof window !== "undefined") { console.log("Play button clicked, current lastSeekedPosition:", window.lastSeekedPosition); } - + // Call the original handler onPlay(); }; @@ -55,15 +55,25 @@ const EditingTools = ({ {/* Left side - Play buttons group */}
- You're about to replace the original video with this trimmed version. This can't be undone. + You're about to replace the original video with this trimmed version. This can't be + undone.
@@ -4058,16 +4632,13 @@ const TimelineControls = ({ } >- You're about to save a new copy with your edits. The original video will stay the same. Find the new file in your My Media folder - named after the original file. + You're about to save a new copy with your edits. The original video will stay the + same. Find the new file in your My Media folder - named after the original file.
{/* Processing Modal */} -- You're about to save each segment as a separate video. Find the new files in your My Media folder - named after the original file. + You're about to save each segment as a separate video. Find the new files in your My + Media folder - named after the original file.
- {errorMessage} -
+{errorMessage}