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.

fix sidebar nav padding

Steven Tey89499ad9f642
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index 77e61a7017..0e3a30eb22 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -628,7 +628,7 @@ export function AppSidebarNav({
const { canTrackConversions } = getPlanCapabilities(plan);
- const setDefaultProductButton =
+ const AppBottomContent =
canSetDefaultProduct &&
(currentArea === "program" || currentArea === "links") &&
(defaultProduct ?? "links") !== currentArea ? (
@@ -682,7 +682,7 @@ export function AppSidebarNav({
))
}
switcher={<WorkspaceDropdown />}
- bottom={setDefaultProductButton}
+ bottom={<div className="px-3 pb-2">{AppBottomContent}</div>}
/>
);
}
diff --git a/apps/web/ui/layout/sidebar/sidebar-nav.tsx b/apps/web/ui/layout/sidebar/sidebar-nav.tsx
index bfd440a5c6..10fdd21b24 100644
--- a/apps/web/ui/layout/sidebar/sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/sidebar-nav.tsx
@@ -281,7 +281,7 @@ function SidebarAreasPanel<T extends Record<any, any>>({
height
className="flex flex-shrink-0 flex-col gap-2 rounded-b-xl"
>
- {bottom && <div className="px-3 pb-2">{bottom}</div>}
+ {bottom}
{showNews && newsContent}
</AnimatedSizeContainer>
</div>