diff --git a/frontend/bun.lock b/frontend/bun.lock index e672e96..09a9ffb 100644 --- a/frontend/bun.lock +++ b/frontend/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "frontend", diff --git a/frontend/src/components/layouts/utils/MainPanel.tsx b/frontend/src/components/layouts/utils/MainPanel.tsx index 8a90d1f..8f84ed4 100644 --- a/frontend/src/components/layouts/utils/MainPanel.tsx +++ b/frontend/src/components/layouts/utils/MainPanel.tsx @@ -83,16 +83,14 @@ export function MainPanel({ children }: MainPanelProps) { if (!mainRef.current || !contentRef.current) return; const contentHeight = contentRef.current.scrollHeight + 180; - const contentWidth = contentRef.current.scrollWidth + 48; - const height = Math.min(contentHeight, window.innerHeight * 0.8); + const height = Math.min(contentHeight, window.innerHeight * 0.9); if (isFirstRender.current) { - gsap.set(mainRef.current, { height, width: contentWidth }); + gsap.set(mainRef.current, { height }); isFirstRender.current = false; } else { gsap.to(mainRef.current, { height, - width: contentWidth, duration: 0.45, ease: "power2.inOut", }); @@ -107,7 +105,7 @@ export function MainPanel({ children }: MainPanelProps) {
diff --git a/frontend/src/routes/links.tsx b/frontend/src/routes/links.tsx index 380e4c0..c20cbe0 100644 --- a/frontend/src/routes/links.tsx +++ b/frontend/src/routes/links.tsx @@ -42,7 +42,7 @@ function LinksPage() { { opacity: 1, y: 0, duration: 0.5, stagger: 0.08, ease: "power2.out" }, ); } - }, [isLoading]); + }, [isLoading, data]); const handleCopy = async (text: string) => { try { @@ -142,7 +142,7 @@ function LinksPage() { }, [isError, retried, refetch]); return ( -
+
@@ -160,7 +160,7 @@ function LinksPage() {
)} -
+
diff --git a/frontend/src/styles/index.css b/frontend/src/styles/index.css index 29d4235..8af697d 100644 --- a/frontend/src/styles/index.css +++ b/frontend/src/styles/index.css @@ -91,4 +91,5 @@ main { .animate-in { opacity: 0; + will-change: transform, opacity; }