From d4d219861d0dff53f5d308f1f91761786054bbcb Mon Sep 17 00:00:00 2001 From: Yiannis Christodoulou Date: Tue, 16 Dec 2025 09:28:29 +0200 Subject: [PATCH] Update segment color schemes in video and chapters editor. --- .../client/src/components/ClipSegments.tsx | 10 +-- .../src/components/TimelineControls.tsx | 4 +- .../client/src/styles/ClipSegments.css | 88 +++++++++++++------ .../client/src/styles/IOSNotification.css | 4 +- .../client/src/styles/Modal.css | 14 +-- .../client/src/styles/TimelineControls.css | 13 ++- .../client/src/components/ClipSegments.tsx | 6 +- .../client/src/styles/ClipSegments.css | 58 ++++++++++-- .../client/src/styles/TimelineControls.css | 2 - 9 files changed, 134 insertions(+), 65 deletions(-) diff --git a/frontend-tools/chapters-editor/client/src/components/ClipSegments.tsx b/frontend-tools/chapters-editor/client/src/components/ClipSegments.tsx index 4c560642..53a461b1 100644 --- a/frontend-tools/chapters-editor/client/src/components/ClipSegments.tsx +++ b/frontend-tools/chapters-editor/client/src/components/ClipSegments.tsx @@ -28,9 +28,9 @@ const ClipSegments = ({ segments, selectedSegmentId }: ClipSegmentsProps) => { // Generate the same color background for a segment as shown in the timeline const getSegmentColorClass = (index: number) => { - // Return CSS class based on index modulo 8 - // This matches the CSS nth-child selectors in the timeline - return `segment-default-color segment-color-${(index % 8) + 1}`; + // Return CSS class based on index modulo 20 + // This matches the CSS classes for up to 20 segments + return `segment-default-color segment-color-${(index % 20) + 1}`; }; // Get selected segment @@ -65,8 +65,8 @@ const ClipSegments = ({ segments, selectedSegmentId }: ClipSegmentsProps) => {