From f55773226924c054bb0ce68ecfc42b822c88fbda Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 30 Jul 2026 07:10:44 +0000 Subject: [PATCH] Make the whole Navbar mobile menu row tappable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Leaf pages in the mobile menu were rendered as a padded, background-styled div that toggled submenu state on tap (a no-op for pages without children), with the actual link's hit area limited to the text itself. Tapping the visible row area did nothing, so navigating read as needing two taps. The mobile item row classes now live on the itself so the entire padded row navigates, matching how mobile_folder.html already styles its full-width toggle button. Pages that also have children get a separate chevron button with @click.stop to open the submenu without navigating. The same fix is applied to second-level leaf rows in mobile_submenu.html; third-level rows (mobile_submenu_menu.html) already used full-width links. aria-current and data-active-child move onto the styled element, since the aria-[current=page]/data-[active-child] variants generated from properties.config.json are self-referential. The unreachable isFolder branch in mobile_item.html is removed — index.html routes folders to mobile_folder.html, which is unchanged. Refs Basecamp todo 10145374696; forum threads 56937, 56979. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_017D3UxSNcTvJZn9K7Ffz5Hs --- .../templates/include/mobile_item.html | 52 +++++++++---------- .../templates/include/mobile_submenu.html | 47 ++++++++++++----- 2 files changed, 58 insertions(+), 41 deletions(-) diff --git a/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_item.html b/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_item.html index 2dd6c367..b47562f4 100644 --- a/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_item.html +++ b/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_item.html @@ -1,49 +1,45 @@ -
  • -
    - @if(page.isFolder) - - @else +
  • + @if(page.hasPages) +
    {{page.title}} - @if(page.hasPages) - @endif @endif
    + @else + {{page.title}} + @endif @includeIf(page.hasPages, template: "mobile_submenu")
  • diff --git a/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_submenu.html b/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_submenu.html index c55616c5..6a69076b 100644 --- a/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_submenu.html +++ b/packs/Core.elementsdevpack/components/com.realmacsoftware.navbar/templates/include/mobile_submenu.html @@ -21,28 +21,49 @@ {{child.title}} @include("mobile_submenu_indicator") - @else -
    + @else @if(child.hasPages) +
    {{child.title}} - @includeIf(child.hasPages, template: "mobile_submenu_indicator") +
    - @endif @includeIf(child.hasPages, template: "mobile_submenu_menu") + @else + {{child.title}} + @endif @endif @includeIf(child.hasPages, template: "mobile_submenu_menu") @endeach