From 5aba00c7fccc78afd112278c1de90d1ec6d6af29 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 9 Oct 2026 15:59:06 -0400 Subject: [PATCH] Notifications: mobile polish - Anchor the bell badge to the icon so it no longer covers the bell on phones - 44px read/unread button on touch screens - Full-width Unread/All toggle on phones --- agent/notifications.php | 8 ++++---- css/itflow_custom.css | 27 ++++++++++++++++++++++----- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/agent/notifications.php b/agent/notifications.php index c1c7b9221..aee4e6749 100644 --- a/agent/notifications.php +++ b/agent/notifications.php @@ -102,12 +102,12 @@ $empty_state_skip = true; -
- diff --git a/css/itflow_custom.css b/css/itflow_custom.css index 584a2d704..af3560860 100644 --- a/css/itflow_custom.css +++ b/css/itflow_custom.css @@ -182,12 +182,16 @@ height: 1.6rem; margin-top: 0; } -/* .navbar-badge positions itself (top:9px/right:5px) for a taller bar; the - markup used to override that inline, which is why it drifted when the bar - was tightened. Positioned against the flex-centred link instead. */ +/* .navbar-badge positions itself (top:9px/right:5px) for a taller bar. Pinned + to the link's edge, it slid over the icon whenever the link got narrower - + on phones the link is 28px wide and the badge covered the bell completely. + The icon is centred in the link, so anchoring to the centre puts the badge + on the icon's top-right corner at every width. */ .app-header .navbar-badge { - top: .15rem; - right: .15rem; + top: 50%; + right: auto; + left: calc(50% + .2rem); + margin-top: -.9rem; font-size: .65rem; } @@ -1952,6 +1956,19 @@ html { opacity: 1; } } +/* A finger needs a bigger target than a pointer: 44px on touch screens, with + the row's text kept clear of it */ +@media (pointer: coarse) { + .itflow-notify-toggle { + top: .3rem; + right: .25rem; + width: 2.75rem; + height: 2.75rem; + } + .itflow-notify-item .itflow-notify-link { + padding-right: 3.25rem; + } +} .itflow-notify-empty { padding: 2rem 1rem; text-align: center;