Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: align collapsed sidebar icons for collapsible nav sections

Adam Eivy1a97439253df
diff --git a/.changelog/v0.26.x.md b/.changelog/v0.26.x.md
new file mode 100644
index 0000000000..ce869d255a
--- /dev/null
+++ b/.changelog/v0.26.x.md
@@ -0,0 +1,11 @@
+# Release v0.26.x - Changelog
+
+Released: YYYY-MM-DD
+
+## Overview
+
+UI polish and alignment fixes.
+
+## Fixes
+
+- **Collapsed sidebar icon alignment** — collapsible nav sections (AI Config, Chief of Staff, Dev Tools, Identity) had misaligned icons when the sidebar was collapsed; an empty chevron/badge wrapper div was still rendered, creating a 12px gap offset that shifted those icons left of single-item links
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 97f1c5a8aa..a9aec046e5 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -297,19 +297,20 @@ export default function Layout() {
{item.label}
</span>
</div>
- <div className="flex items-center gap-2">
- {/* Badge for expanded state on collapsible sections */}
- {item.showBadge && unreadCount > 0 && !collapsed && (
- <span className="min-w-[18px] h-[18px] flex items-center justify-center text-[10px] font-bold rounded-full bg-yellow-500 text-black px-1">
- {unreadCount > 9 ? '9+' : unreadCount}
- </span>
- )}
- {!collapsed && (
- expandedSections[item.label]
+ {!collapsed && (
+ <div className="flex items-center gap-2">
+ {/* Badge for expanded state on collapsible sections */}
+ {item.showBadge && unreadCount > 0 && (
+ <span className="min-w-[18px] h-[18px] flex items-center justify-center text-[10px] font-bold rounded-full bg-yellow-500 text-black px-1">
+ {unreadCount > 9 ? '9+' : unreadCount}
+ </span>
+ )}
+ {expandedSections[item.label]
? <ChevronDown size={16} />
: <ChevronRight size={16} />
- )}
- </div>
+ }
+ </div>
+ )}
</button>
{/* Children items */}
diff --git a/package-lock.json b/package-lock.json
index 2be3eeecce..486392363c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "portos",
- "version": "0.26.0",
+ "version": "0.26.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "portos",
- "version": "0.26.0",
+ "version": "0.26.1",
"license": "MIT",
"workspaces": [
"packages/*",
diff --git a/package.json b/package.json
index 45778fa1b6..37e20cb9a5 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "portos",
- "version": "0.26.0",
+ "version": "0.26.1",
"private": true,
"description": "Local dev machine App OS portal",
"author": "Adam Eivy (@antic|@atomantic)",