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: improve touch affordances in navigation banners (#4932)

[._.]/ Adam Eivy418d8dab5a81
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 05d2f14783..27449883ce 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -404,7 +404,7 @@ function PinButton({ label, pinned, onTogglePin }) {
type="button"
aria-label={pinned ? `Unpin ${label}` : `Pin ${label}`}
onClick={(e) => { e.preventDefault(); e.stopPropagation(); onTogglePin(); }}
- className={`px-2 rounded-lg hover:bg-port-border/50 ${pinned ? 'text-port-accent' : 'text-gray-500 opacity-40 sm:opacity-0 sm:group-hover:opacity-100 group-focus-within:opacity-100'}`}
+ className={`px-2 rounded-lg hover:bg-port-border/50 ${pinned ? 'text-port-accent' : 'text-gray-500 opacity-40 [@media(hover:hover)]:sm:opacity-0 [@media(hover:hover)]:sm:group-hover:opacity-100 group-focus-within:opacity-100'}`}
>
{pinned ? <PinOff size={14} /> : <Pin size={14} />}
</button>
diff --git a/client/src/components/UpdateBanners.jsx b/client/src/components/UpdateBanners.jsx
index ba043e72d8..c571908f6e 100644
--- a/client/src/components/UpdateBanners.jsx
+++ b/client/src/components/UpdateBanners.jsx
@@ -30,14 +30,14 @@ export default function UpdateBanners() {
<button
type="button"
onClick={() => { clearOutOfSync(); goToUpdate(); }}
- className="px-2 py-1 bg-port-warning text-black text-xs rounded hover:bg-port-warning/80"
+ className="min-h-[44px] px-2 py-2 bg-port-warning text-black text-xs rounded hover:bg-port-warning/80 sm:min-h-0 sm:py-1"
>
Reconcile
</button>
<button
type="button"
onClick={dismissOutOfSync}
- className="px-2 py-1 bg-gray-600 text-white text-xs rounded hover:bg-gray-500"
+ className="min-h-[44px] px-2 py-2 bg-gray-600 text-white text-xs rounded hover:bg-gray-500 sm:min-h-0 sm:py-1"
>
Dismiss
</button>
@@ -58,14 +58,14 @@ export default function UpdateBanners() {
<button
type="button"
onClick={() => { dismissUpdate(); goToUpdate(); }}
- className="px-2 py-1 bg-port-accent text-white text-xs rounded hover:bg-port-accent/80"
+ className="min-h-[44px] px-2 py-2 bg-port-accent text-white text-xs rounded hover:bg-port-accent/80 sm:min-h-0 sm:py-1"
>
Update
</button>
<button
type="button"
onClick={ignoreUpdate}
- className="px-2 py-1 bg-gray-600 text-white text-xs rounded hover:bg-gray-500"
+ className="min-h-[44px] px-2 py-2 bg-gray-600 text-white text-xs rounded hover:bg-gray-500 sm:min-h-0 sm:py-1"
>
Ignore
</button>
diff --git a/client/src/components/UpdateBanners.test.jsx b/client/src/components/UpdateBanners.test.jsx
index 35c6114727..36fb6a475c 100644
--- a/client/src/components/UpdateBanners.test.jsx
+++ b/client/src/components/UpdateBanners.test.jsx
@@ -70,6 +70,22 @@ describe('UpdateBanners', () => {
expect(document.querySelector('.fixed')).toBeNull();
});
+ it('gives banner actions a 44px touch target while preserving desktop density', async () => {
+ getUpdateStatus.mockResolvedValue({
+ installState: { outOfSync: true, currentCommit: 'abc123' },
+ updateAvailable: true,
+ currentVersion: '1.0.0',
+ latestRelease: { version: '1.1.0' },
+ });
+ renderBanners();
+ await screen.findByRole('button', { name: 'Reconcile' });
+
+ screen.getAllByRole('button').forEach((button) => {
+ expect(button.className).toContain('min-h-[44px]');
+ expect(button.className).toContain('sm:min-h-0');
+ });
+ });
+
it('persists the out-of-sync dismissal per commit so it does not re-raise', async () => {
getUpdateStatus.mockResolvedValue({
installState: { outOfSync: true, currentCommit: 'abc123' }