Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

fix(settings): show icon-only section nav on mobile so content is no longer squeezed into a narrow column

Khuram Niaz9bd77986477f
diff --git a/src/app/dashboard/settings/page.tsx b/src/app/dashboard/settings/page.tsx
index c3d1f97..78e45c4 100644
--- a/src/app/dashboard/settings/page.tsx
+++ b/src/app/dashboard/settings/page.tsx
@@ -17,7 +17,7 @@ function Settings() {
<h3 className="text-2xl font-semibold leading-none tracking-tight mb-4">
Settings
</h3>
- <div className="flex gap-6">
+ <div className="flex gap-3 sm:gap-6">
<SettingsSidebar
activeSection={activeSection}
onSectionChange={setActiveSection}
diff --git a/src/components/settings/SettingsSidebar.tsx b/src/components/settings/SettingsSidebar.tsx
index b382c2b..9da4f22 100644
--- a/src/components/settings/SettingsSidebar.tsx
+++ b/src/components/settings/SettingsSidebar.tsx
@@ -29,7 +29,7 @@ export default function SettingsSidebar({
onSectionChange,
}: SettingsSidebarProps) {
return (
- <nav className="flex flex-col gap-1 w-48 shrink-0">
+ <nav className="flex flex-col gap-1 w-10 sm:w-48 shrink-0">
{SETTINGS_SECTIONS.map((section) => {
const Icon = section.icon;
const isActive = activeSection === section.id;
@@ -37,8 +37,10 @@ export default function SettingsSidebar({
<Button
key={section.id}
variant="ghost"
+ title={section.label}
+ aria-label={section.label}
className={cn(
- "justify-start gap-2 rounded-none border-l-2",
+ "justify-center sm:justify-start gap-2 rounded-none border-l-2 px-0 sm:px-4",
isActive
? "border-l-primary bg-muted font-medium"
: "border-l-transparent hover:border-l-muted-foreground/25",
@@ -46,7 +48,7 @@ export default function SettingsSidebar({
onClick={() => onSectionChange(section.id)}
>
<Icon className="h-4 w-4" />
- {section.label}
+ <span className="hidden sm:inline">{section.label}</span>
</Button>
);
})}