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`, }} >