Skip to content

Open source CapCut alternative.

TypeScript

site/landing: hide download CTA on mobile and fix sticky header on auth pages

David Le7099fbb95387
diff --git a/site/src/app/_components/landing/AuthScreen.tsx b/site/src/app/_components/landing/AuthScreen.tsx
index c96a8afa..3b42000a 100644
--- a/site/src/app/_components/landing/AuthScreen.tsx
+++ b/site/src/app/_components/landing/AuthScreen.tsx
@@ -136,7 +136,7 @@ export function AuthScreen({ mode }: Props) {
);
return (
- <main className="min-h-screen w-full max-w-full overflow-x-hidden bg-background font-system text-ink antialiased">
+ <main className="min-h-screen w-full bg-background font-system text-ink antialiased">
<TopNav
ctaHref={screenCopy.alternateHref}
ctaLabel={copy[otherMode].title}
diff --git a/site/src/app/_components/landing/TopNav.tsx b/site/src/app/_components/landing/TopNav.tsx
index d1b826c7..f19eab14 100644
--- a/site/src/app/_components/landing/TopNav.tsx
+++ b/site/src/app/_components/landing/TopNav.tsx
@@ -95,10 +95,12 @@ export function TopNav({
</span>
</>
) : null}
- <PillButton href={ctaHref} variant="dark" size="sm">
- {ctaLabel}
- {ctaShowArrow ? <ArrowRight size={14} /> : null}
- </PillButton>
+ <span className={cn(ctaShowArrow ? "hidden md:inline-flex" : "inline-flex")}>
+ <PillButton href={ctaHref} variant="dark" size="sm">
+ {ctaLabel}
+ {ctaShowArrow ? <ArrowRight size={14} /> : null}
+ </PillButton>
+ </span>
</>
)}
</div>