From ee7fb7950c4555e9bdfbd5bfde077a68c743b1b3 Mon Sep 17 00:00:00 2001 From: Yiannis Christodoulou Date: Mon, 13 Oct 2025 01:24:20 +0300 Subject: [PATCH] Chapters: Play Preview should not be included for the chapter editor - only Play is needed --- .../client/src/components/EditingTools.tsx | 152 ++++++------------ 1 file changed, 49 insertions(+), 103 deletions(-) diff --git a/frontend-tools/chapters-editor/client/src/components/EditingTools.tsx b/frontend-tools/chapters-editor/client/src/components/EditingTools.tsx index d3c61c37..f06ee319 100644 --- a/frontend-tools/chapters-editor/client/src/components/EditingTools.tsx +++ b/frontend-tools/chapters-editor/client/src/components/EditingTools.tsx @@ -7,12 +7,10 @@ interface EditingToolsProps { onReset: () => void; onUndo: () => void; onRedo: () => void; - onPlaySegments: () => void; onPlay: () => void; canUndo: boolean; canRedo: boolean; isPlaying?: boolean; - isPlayingSegments?: boolean; } const EditingTools = ({ @@ -20,12 +18,10 @@ const EditingTools = ({ onReset, onUndo, onRedo, - onPlaySegments, onPlay, canUndo, canRedo, isPlaying = false, - isPlayingSegments = false, }: EditingToolsProps) => { const [isSmallScreen, setIsSmallScreen] = useState(false); @@ -55,52 +51,6 @@ const EditingTools = ({
{/* Left side - Play buttons group */}
- {/* Play Chapters button */} - {/* Play Preview button */} {/* - )} + {/* Standard Play button */} + {/* Segments Playback message (replaces play button during segments playback) */} {/* {isPlayingSegments && !isSmallScreen && ( @@ -209,8 +156,8 @@ const EditingTools = ({