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.

Make leftmost bar narrower

Tim Wilsonb88c8664375a
diff --git a/apps/web/app/app.dub.co/(dashboard)/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/layout.tsx
index 167a50d573..cfd9f3d650 100644
--- a/apps/web/app/app.dub.co/(dashboard)/layout.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/layout.tsx
@@ -23,7 +23,7 @@ export default async function Layout({ children }: { children: ReactNode }) {
</>
}
newsContent={<NewsRSC />}
- sidebarWidth={320} // TODO: Move into MainNav once app. and partners. are unified
+ sidebarWidth={304} // TODO: Move into MainNav once app. and partners. are unified
>
{children}
</MainNav>
diff --git a/apps/web/ui/layout/sidebar/sidebar-nav.tsx b/apps/web/ui/layout/sidebar/sidebar-nav.tsx
index 857533e851..3e52083e21 100644
--- a/apps/web/ui/layout/sidebar/sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/sidebar-nav.tsx
@@ -84,16 +84,16 @@ export function SidebarNav<T extends Record<any, any>>({
}) {
return (
<ClientOnly className="size-full">
- <nav className="grid size-full grid-cols-[80px_1fr]">
+ <nav className="grid size-full grid-cols-[64px_1fr]">
<div className="flex flex-col items-center justify-between">
<div className="flex flex-col items-center p-2">
<Link
href=""
- className="rounded-md px-1 py-5 outline-none transition-opacity focus-visible:ring-2 focus-visible:ring-black/50"
+ className="rounded-md px-1 py-[18px] outline-none transition-opacity focus-visible:ring-2 focus-visible:ring-black/50"
>
- <NavWordmark className="h-6" isInApp />
+ <NavWordmark className="h-5" isInApp />
</Link>
- <div className="flex flex-col gap-4">
+ <div className="flex flex-col gap-3">
{areas[currentArea](data).showSwitcher && switcher && (
<div>{switcher}</div>
)}
@@ -102,7 +102,7 @@ export function SidebarNav<T extends Record<any, any>>({
))}
</div>
</div>
- <div className="flex flex-col items-center gap-4 py-4">
+ <div className="flex flex-col items-center gap-3 py-3">
<Suspense fallback={null}>{toolContent}</Suspense>
<div className="flex size-12 items-center justify-center">
<UserDropdown />