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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(brain): compact mobile header + scrollable icon-only tabs
Adam Eivya3a492eae395
diff --git a/client/src/pages/Brain.jsx b/client/src/pages/Brain.jsxindex 6231433022..d325fb5b97 100644--- a/client/src/pages/Brain.jsx+++ b/client/src/pages/Brain.jsx@@ -88,20 +88,20 @@ export default function Brain() {return (<div className="flex flex-col h-full">{/* Header */}- <div className="flex items-center justify-between p-4 border-b border-port-border">- <div className="flex items-center gap-3">- <BrainIcon className="w-8 h-8 text-port-accent" />- <div>- <h1 className="text-xl font-bold text-white">Brain</h1>- <p className="text-sm text-gray-500">Second brain for capturing and organizing thoughts</p>+ <div className="flex flex-wrap items-center justify-between gap-x-3 gap-y-2 px-3 py-2 sm:p-4 border-b border-port-border">+ <div className="flex items-center gap-2 sm:gap-3 min-w-0">+ <BrainIcon className="w-6 h-6 sm:w-8 sm:h-8 text-port-accent shrink-0" />+ <div className="min-w-0">+ <h1 className="text-lg sm:text-xl font-bold text-white leading-tight">Brain</h1>+ <p className="hidden sm:block text-sm text-gray-500">Second brain for capturing and organizing thoughts</p></div></div>- {/* Quick stats */}+ {/* Quick stats — wrap on small screens; only "needs review" stays loud */}{summary && (- <div className="flex items-center gap-4 text-sm">+ <div className="flex flex-wrap items-center gap-x-3 gap-y-1 text-xs sm:text-sm">{summary.needsReview > 0 && (- <span className="px-2 py-1 rounded bg-port-warning/20 text-port-warning">+ <span className="px-2 py-0.5 rounded bg-port-warning/20 text-port-warning">{summary.needsReview} needs review</span>)}@@ -111,11 +111,11 @@ export default function Brain() {<span className="text-gray-500">{summary.counts?.projects || 0} projects</span>- <span className="text-gray-500">+ <span className="hidden sm:inline text-gray-500">{summary.counts?.people || 0} people</span>{summary.lastDailyDigest && (- <span className="text-gray-500">+ <span className="hidden md:inline text-gray-500">Last digest: {timeAgo(summary.lastDailyDigest)}</span>)}@@ -123,8 +123,8 @@ export default function Brain() {)}</div>- {/* Tab navigation */}- <div className="flex border-b border-port-border">+ {/* Tab navigation — horizontal scroll on mobile, icon-only below sm */}+ <div className="flex border-b border-port-border overflow-x-auto">{TABS.map((tabItem) => {const Icon = tabItem.icon;const isActive = activeTab === tabItem.id;@@ -132,16 +132,18 @@ export default function Brain() {<buttonkey={tabItem.id}onClick={() => handleTabChange(tabItem.id)}- className={`flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors ${+ className={`shrink-0 flex items-center gap-2 px-3 sm:px-4 py-2 sm:py-3 text-sm font-medium min-h-[40px] transition-colors ${isActive? 'text-port-accent border-b-2 border-port-accent bg-port-accent/5': 'text-gray-400 hover:text-white hover:bg-port-card'}`}role="tab"aria-selected={isActive}+ aria-label={tabItem.label}+ title={tabItem.label}><Icon size={16} aria-hidden="true" />- {tabItem.label}+ <span className="hidden sm:inline">{tabItem.label}</span></button>);})}