Skip to content

Commit a39671c

Browse files
authored
Polish sidebar and reduce chrome clutter (#507)
- Rename the footer navigation back to Home with a home icon - Simplify the branded footer to show only the version - Remove the sidebar border to soften the chat layout chrome
1 parent 43877d3 commit a39671c

2 files changed

Lines changed: 7 additions & 17 deletions

File tree

apps/web/src/components/Sidebar.tsx

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import {
3838
GitBranchIcon,
3939
GitMergeIcon,
4040
GitPullRequestIcon,
41+
HomeIcon,
4142
LinkIcon,
4243
PanelLeftCloseIcon,
4344
PlusIcon,
@@ -140,7 +141,6 @@ import {
140141
SidebarMenuSub,
141142
SidebarMenuSubButton,
142143
SidebarMenuSubItem,
143-
SidebarSeparator,
144144
SidebarTrigger,
145145
useSidebar,
146146
} from "./ui/sidebar";
@@ -2474,7 +2474,6 @@ export default function Sidebar() {
24742474
</SidebarGroup>
24752475
</SidebarContent>
24762476

2477-
<SidebarSeparator />
24782477
<SidebarFooter className="p-2">
24792478
<SidebarMenu>
24802479
{isOnSubPage ? (
@@ -2506,8 +2505,8 @@ export default function Sidebar() {
25062505
className="gap-2 px-2 py-1.5 text-muted-foreground/70 hover:bg-accent hover:text-foreground"
25072506
onClick={() => void navigate({ to: "/" })}
25082507
>
2509-
<ChevronRightIcon className="size-3.5" />
2510-
<span className="text-xs">Projects</span>
2508+
<HomeIcon className="size-3.5" />
2509+
<span className="text-xs">Home</span>
25112510
</SidebarMenuButton>
25122511
</SidebarMenuItem>
25132512
{hasWorktreeCleanupCandidates ? (
@@ -2561,18 +2560,9 @@ export default function Sidebar() {
25612560
{APP_BASE_NAME}
25622561
</span>
25632562
</div>
2564-
<div className="ml-auto flex shrink-0 items-center gap-2">
2565-
<span
2566-
className="inline-flex items-center gap-1 rounded-full px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.18em]"
2567-
style={brandFooterStatus.pillStyle}
2568-
>
2569-
<CircleDotIcon className="size-2.5" />
2570-
{brandFooterStatus.label}
2571-
</span>
2572-
<span className="text-[10px] font-medium tracking-wide text-muted-foreground/80">
2573-
v{APP_VERSION}
2574-
</span>
2575-
</div>
2563+
<span className="ml-auto shrink-0 text-[10px] font-medium tracking-wide text-muted-foreground/80">
2564+
v{APP_VERSION}
2565+
</span>
25762566
</div>
25772567
</button>
25782568
}

apps/web/src/routes/_chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ function ChatRouteLayout() {
359359
collapsible="offcanvas"
360360
// Keep the primary sidebar on a simpler paint path. The blur layer is
361361
// visually nice, but it is also the most likely source of display-only shimmer.
362-
className="border-r-2 border-border/60 bg-card/80 text-foreground shadow-[2px_0_12px_-4px_rgba(0,0,0,0.08)] dark:border-border/40 dark:bg-card/60 dark:shadow-[2px_0_16px_-4px_rgba(0,0,0,0.3)]"
362+
className="bg-card/80 text-foreground shadow-[2px_0_12px_-4px_rgba(0,0,0,0.08)] dark:bg-card/60 dark:shadow-[2px_0_16px_-4px_rgba(0,0,0,0.3)]"
363363
style={
364364
{
365365
"--sidebar-background-opacity": settings.sidebarOpacity,

0 commit comments

Comments
 (0)