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: stack sidebar footer vertically on mobile to prevent icon overflow

Adam Eivy688cdddc7b9e
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index eae17b4dd2..407748e6b5 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -42,6 +42,8 @@
## Fixed
+- **Mobile sidebar footer — version + icons no longer overflow the nav.** The expanded sidebar drawer footer rendered the version label and four 40×40 touch-target icons (Ambient, theme toggle, voice toggle, notifications) on a single `flex justify-between` row. On mobile the sidebar is `w-56` (224px) with `p-4` padding, leaving 192px of content width — but `~50px` for `v1.48.0` plus `4 × 40px + gaps ≈ 172px` for the icons totaled ~225px, so the rightmost icon (notification bell with its yellow badge) bled outside the nav background. Fixed by stacking the row vertically below the `sm:` breakpoint (`flex-col items-center gap-2 sm:flex-row sm:gap-0 sm:justify-between`), which puts the version above the centered icon row on mobile while preserving the original side-by-side layout on `sm+` and the existing `lg:flex-col` stack when the sidebar is collapsed. Touched: `client/src/components/Layout.jsx`.
+
- **CoS agent progress bar — active runs cap at 99%, not 100%.** The P80-based progress meter on `AgentCard` clamped at 100% via `Math.min(100, …)`, so any agent that reached its expected run time visually flipped to "100% complete" while still actively running — confusing the user into thinking the task had finished. Capped the calculation at 99% instead so only completion can land on 100%, and switched the overtime color trigger from `progress >= 100` (now unreachable) to the existing `remainingTime?.isOvertime` flag so the bar still flips to yellow once the duration exceeds the P80 estimate. The "+Xs over estimate" badge already handled the textual overtime indicator. Touched: `client/src/components/cos/tabs/AgentCard.jsx`.
- **Digital Twin — page now constrains to viewport instead of growing the whole document.** Every Digital Twin tab whose content exceeded one screen (Identity, Overview, Goals, Documents, Enrich, etc.) used to push the layout `<main>` past viewport height, which forced the vertical scrollbar onto the body and shaved ~8px off `<main>`'s width — visible as an "odd right margin" on mobile and as a body-level scrollbar on desktop. Root cause: `<main>` was `flex-1 overflow-hidden` but its `flex-1` couldn't actually constrain because the parent column had no `min-h-0` and Digital Twin's wrapper used `h-full` (which resolves to `auto` when its parent height is indefinite, so the wrapper grew with content and dragged `<main>` up the chain). Two-line fix: (1) `Layout.jsx` adds `min-h-0` to the main element and `relative` for full-width routes, (2) `DigitalTwin.jsx` switches its outer wrapper from `flex flex-col h-full` to `absolute inset-0 flex flex-col` so it always fills `<main>` exactly. The inner `flex-1 overflow-auto p-4` content container now scrolls internally as designed; body width matches viewport on every tab. Touched: `client/src/components/Layout.jsx`, `client/src/pages/DigitalTwin.jsx`.
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index ad440e7c15..ff35f74cec 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -726,7 +726,7 @@ export default function Layout() {
{/* Footer with version and notifications */}
<div className={`border-t border-port-border ${collapsed ? 'lg:flex lg:justify-center lg:p-2 p-4' : 'p-4'}`}>
- <div className={`flex items-center ${collapsed ? 'lg:flex-col lg:justify-center lg:gap-1' : 'justify-between'}`}>
+ <div className={`flex flex-col items-center gap-2 sm:flex-row sm:gap-0 ${collapsed ? 'lg:flex-col lg:justify-center lg:gap-1' : 'sm:justify-between'}`}>
<span className={`text-sm text-gray-500 ${collapsed ? 'lg:hidden' : ''}`}>
v{__APP_VERSION__}
</span>