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

give the notification panel's mark-all and clear-all controls 44px touch targets

[._.]/ Adam Eivy4b0a15416941
diff --git a/client/src/components/NotificationDropdown.jsx b/client/src/components/NotificationDropdown.jsx
index 608bf20e3d..23ce0c3c5d 100644
--- a/client/src/components/NotificationDropdown.jsx
+++ b/client/src/components/NotificationDropdown.jsx
@@ -161,7 +161,7 @@ export default function NotificationDropdown({
<button
type="button"
onClick={onMarkAllAsRead}
- className="p-1.5 rounded hover:bg-port-border transition-colors focus:outline-hidden focus:ring-2 focus:ring-port-accent"
+ className="inline-flex items-center justify-center min-w-[44px] min-h-[44px] rounded hover:bg-port-border transition-colors focus:outline-hidden focus:ring-2 focus:ring-port-accent sm:min-w-0 sm:min-h-0 sm:p-1.5"
title="Mark all as read"
aria-label="Mark all notifications as read"
>
@@ -172,7 +172,7 @@ export default function NotificationDropdown({
<button
type="button"
onClick={onClearAll}
- className="p-1.5 rounded hover:bg-port-border transition-colors focus:outline-hidden focus:ring-2 focus:ring-port-accent"
+ className="inline-flex items-center justify-center min-w-[44px] min-h-[44px] rounded hover:bg-port-border transition-colors focus:outline-hidden focus:ring-2 focus:ring-port-accent sm:min-w-0 sm:min-h-0 sm:p-1.5"
title="Clear all"
aria-label="Clear all notifications"
>
diff --git a/client/src/components/NotificationDropdown.test.jsx b/client/src/components/NotificationDropdown.test.jsx
index 9b4edb8e2d..41052fd8fa 100644
--- a/client/src/components/NotificationDropdown.test.jsx
+++ b/client/src/components/NotificationDropdown.test.jsx
@@ -104,6 +104,22 @@ describe('NotificationDropdown', () => {
});
describe('touch targets', () => {
+ // These are the controls the panel exists to reach. Sized to their bare icon
+ // they are ~28px, well under the 44px minimum, and were the specific things
+ // the off-screen panel put out of reach.
+ it.each([
+ ['Mark all notifications as read'],
+ ['Clear all notifications'],
+ ['Close notifications']
+ ])('gives the %s control a 44px tap target on touch', (label) => {
+ renderDropdown();
+ openPanel();
+
+ const button = screen.getByRole('button', { name: label });
+ expect(button.className).toContain('min-w-[44px]');
+ expect(button.className).toContain('min-h-[44px]');
+ });
+
it('gives each dismiss button a real tap target that is visible without hover', () => {
renderDropdown();
openPanel();