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: preserve touch target sizes on tablets (#4932)

[._.]/ Adam Eivy1ef19bff2ddd
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 27449883ce..5922a832eb 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 [@media(hover:hover)]:sm:opacity-0 [@media(hover:hover)]:sm:group-hover:opacity-100 group-focus-within:opacity-100'}`}
+ className={`inline-flex min-w-[44px] min-h-[44px] items-center justify-center rounded-lg hover:bg-port-border/50 lg:min-w-0 lg:min-h-0 lg:px-2 lg:py-1.5 ${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 c571908f6e..9dc38123ab 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="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"
+ className="min-h-[44px] px-2 py-2 bg-port-warning text-black text-xs rounded hover:bg-port-warning/80 lg:min-h-0 lg:py-1"
>
Reconcile
</button>
<button
type="button"
onClick={dismissOutOfSync}
- 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"
+ className="min-h-[44px] px-2 py-2 bg-gray-600 text-white text-xs rounded hover:bg-gray-500 lg:min-h-0 lg:py-1"
>
Dismiss
</button>
@@ -58,14 +58,14 @@ export default function UpdateBanners() {
<button
type="button"
onClick={() => { dismissUpdate(); goToUpdate(); }}
- 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"
+ className="min-h-[44px] px-2 py-2 bg-port-accent text-white text-xs rounded hover:bg-port-accent/80 lg:min-h-0 lg:py-1"
>
Update
</button>
<button
type="button"
onClick={ignoreUpdate}
- 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"
+ className="min-h-[44px] px-2 py-2 bg-gray-600 text-white text-xs rounded hover:bg-gray-500 lg:min-h-0 lg:py-1"
>
Ignore
</button>
diff --git a/client/src/components/UpdateBanners.test.jsx b/client/src/components/UpdateBanners.test.jsx
index 36fb6a475c..811d369b79 100644
--- a/client/src/components/UpdateBanners.test.jsx
+++ b/client/src/components/UpdateBanners.test.jsx
@@ -82,7 +82,7 @@ describe('UpdateBanners', () => {
screen.getAllByRole('button').forEach((button) => {
expect(button.className).toContain('min-h-[44px]');
- expect(button.className).toContain('sm:min-h-0');
+ expect(button.className).toContain('lg:min-h-0');
});
});