Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add back mobile nav for waitlist screen

Steven Tey93f19810a1ad
diff --git a/apps/web/ui/layout/page-content/index.tsx b/apps/web/ui/layout/page-content/index.tsx
index b324382042..f132e10ebd 100644
--- a/apps/web/ui/layout/page-content/index.tsx
+++ b/apps/web/ui/layout/page-content/index.tsx
@@ -24,19 +24,6 @@ export function PageContent({
className?: string;
contentWrapperClassName?: string;
}>) {
- if (!title) {
- return (
- <div
- className={cn(
- "rounded-t-[inherit] bg-neutral-100 md:bg-white",
- className,
- )}
- >
- {children}
- </div>
- );
- }
-
// Generate titleInfo from object if provided
const finalTitleInfo =
titleInfo &&
@@ -56,6 +43,8 @@ export function PageContent({
titleInfo
);
+ const hasHeaderContent = !!(title || controls);
+
return (
<div
className={cn(
@@ -63,25 +52,34 @@ export function PageContent({
className,
)}
>
- <div className="border-border-subtle border-b">
+ <div
+ className={cn("border-border-subtle", hasHeaderContent && "border-b")}
+ >
<PageWidthWrapper>
- <div className="flex h-12 items-center justify-between gap-4 sm:h-16">
+ <div
+ className={cn(
+ "flex h-12 items-center justify-between gap-4",
+ hasHeaderContent ? "sm:h-16" : "sm:h-0",
+ )}
+ >
<div className="flex min-w-0 items-center gap-4">
<NavButton />
- <div className="flex items-center gap-2">
- {titleBackHref && (
- <Link
- href={titleBackHref}
- className="rounded-lg p-1.5 text-neutral-500 transition-colors hover:bg-neutral-100 hover:text-neutral-900"
- >
- <ChevronLeft className="size-5" />
- </Link>
- )}
- <h1 className="text-content-emphasis text-lg font-semibold leading-7">
- {title}
- </h1>
- {finalTitleInfo}
- </div>
+ {title && (
+ <div className="flex items-center gap-2">
+ {titleBackHref && (
+ <Link
+ href={titleBackHref}
+ className="rounded-lg p-1.5 text-neutral-500 transition-colors hover:bg-neutral-100 hover:text-neutral-900"
+ >
+ <ChevronLeft className="size-5" />
+ </Link>
+ )}
+ <h1 className="text-content-emphasis text-lg font-semibold leading-7">
+ {title}
+ </h1>
+ {finalTitleInfo}
+ </div>
+ )}
</div>
{controls && (
<div className="flex items-center gap-2">{controls}</div>