From 550f5363fde76b9cbe2d6f06f55ff27be44223ee Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Mon, 21 Jul 2025 23:25:10 +0200 Subject: [PATCH] consistent padding for media elements on timeline --- .../editor/timeline/timeline-element.tsx | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/apps/web/src/components/editor/timeline/timeline-element.tsx b/apps/web/src/components/editor/timeline/timeline-element.tsx index 7cc72b10..8aadde82 100644 --- a/apps/web/src/components/editor/timeline/timeline-element.tsx +++ b/apps/web/src/components/editor/timeline/timeline-element.tsx @@ -239,15 +239,15 @@ export function TimelineElement({ if (mediaItem.type === "video" && mediaItem.thumbnailUrl) { const trackHeight = getTrackHeight(track.type); - const tileHeight = trackHeight - VIDEO_TILE_PADDING; + const tileHeight = trackHeight - 8; // Match image padding const tileWidth = tileHeight * TILE_ASPECT_RATIO; return ( -
-
+
+
{/* Background with tiled thumbnails */}
{/* Overlay with vertical borders */}
- {elementWidth > tileWidth * OVERLAY_SPACE_MULTIPLIER ? ( -
- {element.name} -
- ) : ( - - {element.name} - - )}
); }