From d972d31223cb4f19dfd5e6ec0fe1e342bc3be0f2 Mon Sep 17 00:00:00 2001 From: cashmere Date: Sun, 2 Aug 2026 19:59:46 +0200 Subject: fix: un-nest buttons in timeline to resolve hydration errors Bookmark markers rendered inside the ruler + /> + {bookmarks.map((bookmark) => ( + + ))} ); } diff --git a/apps/web/src/timeline/components/timeline-element.tsx b/apps/web/src/timeline/components/timeline-element.tsx index b25a7a28..5c412435 100644 --- a/apps/web/src/timeline/components/timeline-element.tsx +++ b/apps/web/src/timeline/components/timeline-element.tsx @@ -605,6 +605,12 @@ function ElementInner({ + {FEATURES.effects && + (element.type === "video" || element.type === "image") && + hasElementEffects({ element }) && ( + + )} + {isSelected && ( <> event.stopPropagation()} onClick={handleClick} > @@ -1135,7 +1142,7 @@ function VideoElementContent({ name={mediaAsset.name} leading={ FEATURES.effects && hasElementEffects({ element }) ? ( - +
) : null } hasFade={true} @@ -1184,7 +1191,7 @@ function ImageElementContent({ name={mediaAsset?.name} leading={ FEATURES.effects && hasElementEffects({ element }) ? ( - +
) : null } hasFade={true} -- cgit v1.3.1