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(mobile): enforce 40px+ touch targets in header, drawer, and CoS tab strip

Adam Eivy179ed3eea09c
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 979136b28c..35a998f657 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -712,7 +712,7 @@ export default function Layout() {
{/* Mobile close button */}
<button
onClick={() => setMobileOpen(false)}
- className="lg:hidden p-1 text-gray-500 hover:text-white"
+ className="lg:hidden inline-flex items-center justify-center min-w-[40px] min-h-[40px] rounded-lg text-gray-500 hover:text-white"
aria-label="Close sidebar"
>
<span aria-hidden="true">✕</span>
@@ -733,7 +733,7 @@ export default function Layout() {
<div className={`flex items-center gap-1 ${collapsed ? 'lg:flex-col' : ''}`}>
<NavLink
to="/ambient"
- className={`p-1.5 rounded-lg transition-colors ${collapsed ? 'lg:hidden' : ''} ${
+ className={`inline-flex items-center justify-center min-w-[40px] min-h-[40px] sm:min-w-0 sm:min-h-0 sm:p-1.5 rounded-lg transition-colors ${collapsed ? 'lg:hidden' : ''} ${
isActive('/ambient')
? 'text-port-accent'
: 'text-gray-500 hover:text-white'
@@ -833,10 +833,10 @@ export default function Layout() {
{/* Main area */}
<div className={`flex-1 flex flex-col min-w-0 max-w-full transition-all duration-300 ${collapsed ? 'lg:ml-16' : 'lg:ml-56'}`}>
{/* Mobile header */}
- <header className="lg:hidden flex items-center justify-between px-3 py-2 border-b border-port-border bg-port-card">
+ <header className="lg:hidden flex items-center justify-between px-2 py-1.5 border-b border-port-border bg-port-card">
<button
onClick={() => setMobileOpen(true)}
- className="p-1.5 -ml-1 text-gray-400 hover:text-white"
+ className="inline-flex items-center justify-center min-w-[40px] min-h-[40px] -ml-1 rounded-lg text-gray-400 hover:text-white"
aria-label="Open navigation menu"
aria-expanded={mobileOpen}
>
@@ -846,17 +846,17 @@ export default function Layout() {
<Logo size={22} className="shrink-0" />
<span className="font-bold text-sm text-port-accent">PortOS</span>
</div>
- <div className="flex items-center gap-1">
+ <div className="flex items-center gap-0.5">
<NavLink
to="/ambient"
- className={`p-1.5 rounded-lg transition-colors ${
+ className={`inline-flex items-center justify-center min-w-[40px] min-h-[40px] rounded-lg transition-colors ${
isActive('/ambient')
? 'text-port-accent'
: 'text-gray-500 hover:text-white'
}`}
aria-label="Ambient display"
>
- <Monitor size={16} />
+ <Monitor size={18} />
</NavLink>
<ThemeModeToggle />
<VoiceToggleButton />
diff --git a/client/src/components/NotificationDropdown.jsx b/client/src/components/NotificationDropdown.jsx
index bd38af9d61..c4004208f6 100644
--- a/client/src/components/NotificationDropdown.jsx
+++ b/client/src/components/NotificationDropdown.jsx
@@ -83,7 +83,7 @@ export default function NotificationDropdown({
{/* Bell button with badge */}
<button
onClick={() => setIsOpen(!isOpen)}
- className="relative 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-[40px] min-h-[40px] 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"
title="Notifications"
aria-label={`Notifications${unreadCount > 0 ? ` (${unreadCount} unread)` : ''}`}
aria-expanded={isOpen}
diff --git a/client/src/components/voice/VoiceToggleButton.jsx b/client/src/components/voice/VoiceToggleButton.jsx
index 40d4549721..5b54055a9b 100644
--- a/client/src/components/voice/VoiceToggleButton.jsx
+++ b/client/src/components/voice/VoiceToggleButton.jsx
@@ -53,7 +53,7 @@ export default function VoiceToggleButton({ className = '' }) {
<button
type="button"
onClick={toggle}
- className={`p-1.5 rounded-lg transition-colors ${
+ className={`inline-flex items-center justify-center min-w-[40px] min-h-[40px] sm:min-w-0 sm:min-h-0 sm:p-1.5 rounded-lg transition-colors ${
engaged ? 'text-port-accent' : 'text-gray-500 hover:text-white'
} ${className}`}
title={engaged ? 'Hide voice agent controls' : 'Engage voice agent controls'}
diff --git a/client/src/pages/ChiefOfStaff.jsx b/client/src/pages/ChiefOfStaff.jsx
index de26c4a31d..de2008b873 100644
--- a/client/src/pages/ChiefOfStaff.jsx
+++ b/client/src/pages/ChiefOfStaff.jsx
@@ -809,7 +809,7 @@ export default function ChiefOfStaff() {
aria-controls={`tabpanel-${tabItem.id}`}
id={`tab-${tabItem.id}`}
onClick={() => navigate(`/cos/${tabItem.id}`)}
- className={`flex items-center justify-center gap-1.5 sm:gap-2 px-2.5 sm:px-4 min-h-[40px] text-sm font-medium transition-colors border-b-2 -mb-px whitespace-nowrap shrink-0 ${
+ className={`flex items-center justify-center gap-1.5 sm:gap-2 px-3 sm:px-4 min-w-[44px] min-h-[44px] sm:min-w-0 sm:min-h-[40px] text-sm font-medium transition-colors border-b-2 -mb-px whitespace-nowrap shrink-0 ${
isSelected
? 'text-port-accent border-port-accent'
: 'text-gray-500 border-transparent hover:text-white'