Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions frontend/src/components/layouts/utils/MainPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
Expand All @@ -107,7 +105,7 @@ export function MainPanel({ children }: MainPanelProps) {
<main
ref={mainRef}
style={{ visibility: "hidden" }}
className="absolute bottom-0 right-0 bg-white md:rounded-tl-[140px] rounded-tl-[100px] px-6 py-12 z-10 overflow-y-auto overflow-hidden md:w-full max-w-screen md:max-w-[900px]"
className="absolute bottom-0 right-0 bg-white md:rounded-tl-[140px] rounded-tl-[100px] px-6 py-12 z-10 overflow-y-auto w-full max-w-screen md:max-w-[900px]"
>
<div ref={contentRef}>
<div ref={contentWrapperRef} className="will-change-transform overflow-hidden">
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/routes/links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -142,7 +142,7 @@ function LinksPage() {
}, [isError, retried, refetch]);

return (
<div ref={containerRef} className="w-full max-w-4xl mx-auto">
<div ref={containerRef} className="w-full max-w-4xl mx-auto px-4 sm:px-6">
<div className="animate-in">
<Back subtitle="All Links" />
</div>
Expand All @@ -160,7 +160,7 @@ function LinksPage() {
</div>
)}

<div className="overflow-hidden border border-black/10 rounded-2xl bg-white shadow-sm mb-10 animate-in">
<div className="overflow-hidden border border-black/10 rounded-2xl bg-white shadow-sm mb-10 animate-in min-w-0 w-full">
<div className="overflow-x-auto">
<table className="w-full table-fixed border-collapse">
<thead>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ main {

.animate-in {
opacity: 0;
will-change: transform, opacity;
}
Loading