Open source CapCut alternative.
TypeScript
fix(site): su focus rings clear the sticky header
David Le07955438f9a2
diff --git a/site/src/app/su/SuHeader.tsx b/site/src/app/su/SuHeader.tsxindex 82f896b9..620330c9 100644--- a/site/src/app/su/SuHeader.tsx+++ b/site/src/app/su/SuHeader.tsx@@ -10,7 +10,7 @@ export function SuHeader() {const pathname = usePathname();const section = SU_NAV.find((s) => s.href === pathname) ?? SU_NAV[0];return (- <div className="sticky top-0 z-20 mx-auto flex w-full max-w-6xl shrink-0 items-start justify-between gap-4 bg-background px-10 pt-9 pb-5">+ <div className="sticky top-0 z-20 mx-auto flex w-full max-w-6xl shrink-0 items-start justify-between gap-4 bg-background px-10 pt-9 pb-4"><div><h1 className="text-lg font-semibold tracking-tight">{section.title}</h1>{section.description ? (diff --git a/site/src/app/su/SuShell.tsx b/site/src/app/su/SuShell.tsxindex a176c051..7664564e 100644--- a/site/src/app/su/SuShell.tsx+++ b/site/src/app/su/SuShell.tsx@@ -56,7 +56,10 @@ export function SuShell({ children }: { children: ReactNode }) {<SuHeader /><div className="min-h-0 flex-1"><div className="mx-auto h-full w-full max-w-6xl px-10">- <div className="h-full p-px">{children}</div>+ {/* The header is sticky and opaque, so the top of the gap+ below it lives here: a focus ring on the first control+ needs room that the header cannot paint over. */}+ <div className="h-full px-px pt-1 pb-px">{children}</div></div></div></main>