From adcc97eb5ab2728e45e93aafa8407180a71d26ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Thu, 20 Nov 2025 10:36:40 +0100 Subject: [PATCH] fix: timeline tooltip positioning to account for left padding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add controlsWidth offset to tooltip left position - Tooltip now appears correctly at mouse cursor position 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- components/timeline/TimeScale.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/timeline/TimeScale.tsx b/components/timeline/TimeScale.tsx index 7051140..8fec65d 100644 --- a/components/timeline/TimeScale.tsx +++ b/components/timeline/TimeScale.tsx @@ -252,8 +252,8 @@ export function TimeScale({ className="absolute top-full mt-1 px-2 py-1 bg-popover border border-border rounded shadow-lg text-xs font-mono pointer-events-none z-10" style={{ left: `${Math.min( - viewportWidth - 60, - Math.max(0, (hoverTime / duration) * totalWidth - scrollLeft - 30) + viewportWidth - 60 + controlsWidth, + Math.max(controlsWidth, (hoverTime / duration) * totalWidth - scrollLeft - 30 + controlsWidth) )}px`, }} >