From 7a725ecd0962fa0c37c78dc22827eb9e08c903f3 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Tue, 15 Jul 2025 17:29:28 +0200 Subject: [PATCH] cleanup --- .../components/editor/timeline-element.tsx | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/apps/web/src/components/editor/timeline-element.tsx b/apps/web/src/components/editor/timeline-element.tsx index ca229818..8cccd0e4 100644 --- a/apps/web/src/components/editor/timeline-element.tsx +++ b/apps/web/src/components/editor/timeline-element.tsx @@ -277,11 +277,11 @@ export function TimelineElement({ const tileWidth = tileHeight * TILE_ASPECT_RATIO; return ( -
-
+
+
{/* Background with tiled images */}
{/* Overlay with vertical borders */}
-
+
+
{/* Background with tiled thumbnails */}
{/* Overlay with vertical borders */}
- {/* Show name overlay on the right if there's sufficient space */} - {elementWidth > tileWidth * OVERLAY_SPACE_MULTIPLIER && ( + {elementWidth > tileWidth * OVERLAY_SPACE_MULTIPLIER ? (
{element.name}
+ ) : ( + + {element.name} + )}
);