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: tighten nav footer layout and button sizing to prevent overflow

[._.]/ Adam Eivycd8f177bc37f
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 7a0031c476..d30aa60b07 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -903,10 +903,10 @@ export default function Layout() {
</nav>
{/* 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 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'}`}>
+ <div className={`border-t border-port-border ${collapsed ? 'lg:flex lg:justify-center lg:p-2 px-3 py-2.5' : 'px-3 py-2.5'}`}>
+ <div className={`flex flex-col items-center gap-2 ${collapsed ? 'lg:flex-col lg:justify-center lg:gap-1' : 'lg:flex-row lg:items-center lg:justify-between lg:gap-0'}`}>
<span
- className={`text-sm text-gray-500 ${collapsed ? 'lg:hidden' : ''}`}
+ className={`text-xs text-gray-500 shrink-0 font-medium select-none ${collapsed ? 'lg:hidden' : ''}`}
// The version is identical across every development commit (it
// reflects the last RELEASE), so hovering it gives the one fact it
// cannot carry: which commit is actually running (#4694). This is
@@ -919,7 +919,7 @@ export default function Layout() {
>
v{__APP_VERSION__}
</span>
- <div className={`flex items-center gap-1 ${collapsed ? 'lg:flex-col' : ''}`}>
+ <div className={`flex items-center gap-0.5 ${collapsed ? 'lg:flex-col lg:gap-1' : ''}`}>
<NavLink
to="/ambient"
className={`inline-flex items-center justify-center min-w-[44px] min-h-[44px] lg:min-w-0 lg:min-h-0 lg:p-1.5 rounded-lg transition-colors ${collapsed ? 'lg:hidden' : ''} ${
diff --git a/client/src/components/Layout.test.jsx b/client/src/components/Layout.test.jsx
index f6f5fd1eae..a446b4ca76 100644
--- a/client/src/components/Layout.test.jsx
+++ b/client/src/components/Layout.test.jsx
@@ -441,6 +441,28 @@ describe('Layout — persistent mobile touch targets', () => {
});
});
+describe('Layout — nav footer', () => {
+ it('renders a compact footer layout preventing controls from overflowing the sidebar', async () => {
+ await renderLayout();
+
+ const version = screen.getByText(/^vtest$/);
+ expect(version.className).toContain('text-xs');
+ expect(version.className).toContain('shrink-0');
+
+ const footer = version.closest('.border-t');
+ expect(footer).toBeTruthy();
+ expect(footer.className).toContain('px-3');
+ expect(footer.className).toContain('py-2.5');
+
+ const row = version.parentElement;
+ expect(row.className).toContain('lg:flex-row');
+ expect(row.className).toContain('lg:justify-between');
+
+ const iconsContainer = row.querySelector('.flex.items-center');
+ expect(iconsContainer.className).toContain('gap-0.5');
+ });
+});
+
describe('Layout — Game workspace scroll mode', () => {
it('makes only the Game detail route full-bleed', async () => {
const detail = await renderLayout('/game/example-game');
diff --git a/client/src/components/NotificationDropdown.jsx b/client/src/components/NotificationDropdown.jsx
index bb723b9caf..22adfb90d5 100644
--- a/client/src/components/NotificationDropdown.jsx
+++ b/client/src/components/NotificationDropdown.jsx
@@ -147,14 +147,14 @@ export default function NotificationDropdown({
triggerRef.current?.focus();
setIsOpen(!isOpen);
}}
- className="relative inline-flex items-center justify-center min-w-[44px] min-h-[44px] sm:min-w-0 sm:min-h-0 sm:p-2 rounded-lg hover:bg-port-card transition-colors focus:outline-hidden focus:ring-2 focus:ring-port-accent focus:ring-offset-2 focus:ring-offset-port-bg"
+ className="relative inline-flex items-center justify-center min-w-[44px] min-h-[44px] lg:min-w-0 lg:min-h-0 lg:p-1.5 p-1.5 rounded-lg text-gray-500 hover:text-white transition-colors focus:outline-hidden focus:ring-2 focus:ring-port-accent"
title="Notifications"
aria-label={`Notifications${unreadCount > 0 ? ` (${unreadCount} unread)` : ''}`}
aria-expanded={isOpen}
>
- <Bell className={`w-5 h-5 ${unreadCount > 0 ? 'text-yellow-400' : 'text-gray-400'}`} aria-hidden="true" />
+ <Bell size={18} className={unreadCount > 0 ? 'text-yellow-400' : 'text-gray-500'} aria-hidden="true" />
{unreadCount > 0 && (
- <span className="absolute -top-1 -right-1 min-w-[18px] h-[18px] flex items-center justify-center text-[10px] font-bold rounded-full bg-port-warning text-port-on-warning px-1" aria-hidden="true">
+ <span className="absolute -top-1 -right-1 min-w-[15px] h-[15px] flex items-center justify-center text-[9px] font-bold rounded-full bg-port-warning text-port-on-warning px-0.5" aria-hidden="true">
{unreadCount > 9 ? '9+' : unreadCount}
</span>
)}
diff --git a/client/src/components/NotificationDropdown.test.jsx b/client/src/components/NotificationDropdown.test.jsx
index 3b8caba571..504b467131 100644
--- a/client/src/components/NotificationDropdown.test.jsx
+++ b/client/src/components/NotificationDropdown.test.jsx
@@ -261,6 +261,15 @@ describe('NotificationDropdown', () => {
expect(remove.className).toContain('sm:opacity-0');
expect(remove.className).not.toMatch(/(^|\s)opacity-/);
});
+
+ it('gives the bell trigger a 44px touch target on mobile and compact size on desktop', () => {
+ renderDropdown();
+ const trigger = screen.getByRole('button', { name: /^Notifications/ });
+ expect(trigger.className).toContain('min-w-[44px]');
+ expect(trigger.className).toContain('min-h-[44px]');
+ expect(trigger.className).toContain('lg:min-w-0');
+ expect(trigger.className).toContain('lg:min-h-0');
+ });
});
describe('overflow beyond the collapsed limit', () => {
diff --git a/client/src/components/ThemeSwitcher.jsx b/client/src/components/ThemeSwitcher.jsx
index b6c78be71e..0600ba1961 100644
--- a/client/src/components/ThemeSwitcher.jsx
+++ b/client/src/components/ThemeSwitcher.jsx
@@ -93,7 +93,7 @@ export default function ThemeSwitcher({ position = 'above', className = '' }) {
setOpen(true);
}
}}
- className="min-h-[44px] min-w-[44px] inline-flex items-center justify-center p-1.5 text-gray-500 hover:text-port-accent transition-colors"
+ className="min-h-[44px] min-w-[44px] lg:min-h-0 lg:min-w-0 inline-flex items-center justify-center p-1.5 rounded-lg text-gray-500 hover:text-port-accent transition-colors"
title="Switch theme"
aria-label={`Switch theme. Current theme: ${theme?.label ?? 'Classic Midnight'}`}
aria-haspopup="menu"
diff --git a/client/src/components/ThemeSwitcher.test.jsx b/client/src/components/ThemeSwitcher.test.jsx
index 40bd524c91..bd13b0fbac 100644
--- a/client/src/components/ThemeSwitcher.test.jsx
+++ b/client/src/components/ThemeSwitcher.test.jsx
@@ -50,4 +50,13 @@ describe('ThemeSwitcher', () => {
expect(screen.queryByRole('menu')).not.toBeInTheDocument();
expect(screen.getByRole('button', { name: /Switch theme/ })).toHaveFocus();
});
+
+ it('keeps 44px mobile touch target while compact on desktop', () => {
+ render(<ThemeSwitcher />);
+ const button = screen.getByRole('button', { name: /Switch theme/ });
+ expect(button.className).toContain('min-w-[44px]');
+ expect(button.className).toContain('min-h-[44px]');
+ expect(button.className).toContain('lg:min-w-0');
+ expect(button.className).toContain('lg:min-h-0');
+ });
});