The open-source CapCut alternative
refactor: clean up comments
Maze Winther394d9f684c86
diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsxindex 6d1a19ad..d43ae588 100644--- a/apps/web/src/components/editor/timeline.tsx+++ b/apps/web/src/components/editor/timeline.tsx@@ -732,14 +732,11 @@ export function Timeline() {const menuWidth = 160;const menuHeight = 200;const margin = 4;-- // ADJUSTABLE VALUE: Change this to move menu up/down when it appears above cursor- const verticalOffset = 80; // Reduce this to bring menu closer to cursor when above+ const verticalOffset = 80;const viewportWidth = window.innerWidth;const viewportHeight = window.innerHeight;- // Start with Windows-style default positionlet adjustedX = x + 2;let adjustedY = y + 2;@@ -755,9 +752,8 @@ export function Timeline() {adjustedX = margin;}- // Vertical positioning with adjustable offset+ // Vertical positioningif (adjustedY + menuHeight > viewportHeight - margin) {- // Instead of y - menuHeight - 2, use adjustable offsetadjustedY = y - menuHeight + verticalOffset;if (adjustedY < margin) {@@ -769,7 +765,6 @@ export function Timeline() {adjustedY = margin;}- // Final safety clampadjustedX = Math.max(margin,Math.min(adjustedX, viewportWidth - menuWidth - margin)