Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Tighten navigation section header spacing

Mike Cao385088d53a86
diff --git a/src/app/(main)/settings/SettingsNav.tsx b/src/app/(main)/settings/SettingsNav.tsx
index 6f728307f..32e349795 100644
--- a/src/app/(main)/settings/SettingsNav.tsx
+++ b/src/app/(main)/settings/SettingsNav.tsx
@@ -75,7 +75,7 @@ export function SettingsNav({
{items.map(({ label: sectionLabel, items: sectionItems }, index) => (
<Column key={`${sectionLabel}${index}`} gap="1" marginBottom="1">
{!isCollapsed && (
- <Row padding>
+ <Row paddingX="3" marginTop="2">
<Text weight="bold">{sectionLabel}</Text>
</Row>
)}
diff --git a/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx b/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx
index 3f8833838..3fb2a2442 100644
--- a/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx
+++ b/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx
@@ -37,7 +37,7 @@ export function WebsiteNav({
{items.map(({ label: sectionLabel, items: sectionItems }, index) => (
<Column key={`${sectionLabel}${index}`} gap="1" marginBottom="1">
{!isCollapsed && (
- <Row padding>
+ <Row paddingX="3" marginTop="2">
<Text weight="bold">{sectionLabel}</Text>
</Row>
)}
diff --git a/src/app/share/[slug]/[[...path]]/ShareNav.tsx b/src/app/share/[slug]/[[...path]]/ShareNav.tsx
index a747f71b5..85a713630 100644
--- a/src/app/share/[slug]/[[...path]]/ShareNav.tsx
+++ b/src/app/share/[slug]/[[...path]]/ShareNav.tsx
@@ -169,7 +169,7 @@ export function ShareNav({
{items.map(({ label: sectionLabel, items: sectionItems }, index) => (
<Column key={`${sectionLabel}${index}`} gap="1" marginBottom="1">
{!collapsed && (
- <Row padding>
+ <Row paddingX="3" marginTop="2">
<Text weight="bold">{sectionLabel}</Text>
</Row>
)}
diff --git a/src/components/common/NavMenu.tsx b/src/components/common/NavMenu.tsx
index 9bdc918a8..75c9c35b8 100644
--- a/src/components/common/NavMenu.tsx
+++ b/src/components/common/NavMenu.tsx
@@ -62,8 +62,8 @@ export function NavMenu({
{items?.map(({ label, items }, index) => {
if (label) {
return (
- <Column key={`${label}${index}`} gap="2" marginBottom="3" minHeight="40px">
- <Row padding>
+ <Column key={`${label}${index}`} gap="1" marginBottom="3" minHeight="40px">
+ <Row paddingX="3" marginTop="2">
<Text weight="bold">{label}</Text>
</Row>
{renderItems(items)}