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: enlarge shared help button hit area to 44px for touch (#9547)

Adam Eivy0e587d27242a
diff --git a/client/src/components/ui/InfoTooltip.jsx b/client/src/components/ui/InfoTooltip.jsx
index ac49cab54a..d057c4ba26 100644
--- a/client/src/components/ui/InfoTooltip.jsx
+++ b/client/src/components/ui/InfoTooltip.jsx
@@ -2,6 +2,8 @@ import { useCallback, useEffect, useId, useRef, useState } from 'react';
import { Info } from 'lucide-react';
import useClickOutside from '../../hooks/useClickOutside';
+// The trigger keeps a 44x44px minimum hit area at every width (touch input is not
+// detectable by breakpoint); the negative vertical margin stops it growing rows.
// Accessible info/help tooltip. Renders a focusable <button> trigger with an
// Info icon; the help text is revealed on hover, keyboard focus, OR click/tap,
// and dismissed with Escape or a click/tap outside. This replaces CSS-only
@@ -80,7 +82,7 @@ export default function InfoTooltip({
onClick={() => setPinned((v) => !v)}
onFocus={() => setHovering(true)}
onBlur={() => setHovering(false)}
- className="inline-flex items-center rounded text-gray-500 transition-colors hover:text-gray-300 focus:text-gray-300 focus:outline-none focus-visible:ring-1 focus-visible:ring-port-accent"
+ className="inline-flex shrink-0 items-center justify-center min-h-[44px] min-w-[44px] -my-[15px] rounded text-gray-500 transition-colors hover:text-gray-300 focus:text-gray-300 focus:outline-none focus-visible:ring-1 focus-visible:ring-port-accent"
>
<Info size={iconSize} aria-hidden="true" />
</button>
diff --git a/client/src/components/ui/InfoTooltip.test.jsx b/client/src/components/ui/InfoTooltip.test.jsx
index 3bbc726c85..0268de9930 100644
--- a/client/src/components/ui/InfoTooltip.test.jsx
+++ b/client/src/components/ui/InfoTooltip.test.jsx
@@ -42,6 +42,15 @@ describe('InfoTooltip', () => {
expect(screen.getByRole('tooltip').className).toContain('bottom-full');
});
+ it('keeps a 44px minimum, non-shrinking hit area on the trigger button', () => {
+ render(<InfoTooltip label="help">Big target</InfoTooltip>);
+ const cls = screen.getByRole('button', { name: 'help' }).className;
+ expect(cls).toContain('min-h-[44px]');
+ expect(cls).toContain('min-w-[44px]');
+ expect(cls).toContain('shrink-0');
+ expect(cls).toContain('justify-center');
+ });
+
it('latches open on click for touch users and survives blur', () => {
render(<InfoTooltip label="help">Tap reachable</InfoTooltip>);
const btn = screen.getByRole('button', { name: 'help' });