Skip to content

fix(frontend): Admin and Inventory sub-tab bars clip the last tab at 390px #1647

Closed

Description

@cristim

Summary

At 390px the Admin and Inventory sub-tab bars clip their last tab and a deep-linked active sub-tab is not scrolled into view.

Current behaviour

The last tab is cut off ("Accounts & on...", "RI Exchange"). Opening a deep link to a sub-tab that sits off-screen leaves the active tab hidden.

Steps to reproduce

  1. Open the app at 390px width.
  2. Go to Admin or Inventory and look at the sub-tab bar.
  3. Deep-link to the last sub-tab.

Expected behaviour

All tabs are reachable (scrollable bar with visible affordance or wrapping) and the active tab is scrolled into view.

Proposed fix

Make the sub-tab bar horizontally scrollable at narrow widths and call scrollIntoView({ inline: 'center', block: 'nearest' }) on the active tab after activation (frontend/src/navigation.ts and the sub-tab CSS under frontend/src/styles/).

References

Discovered while reviewing #1626.

Severity

low

Activity

  1. cristim commented on Nov 10, 2026

    @cristim
    MemberAuthor

    Checked against main (f6f6dc3 era) and in a real browser: the premise is gone. #1631 made the Admin and Inventory sub-tab bars horizontally scrollable edge to edge on phones, and #1711 added the visible scroll hint; frontend/src/nav/subtab-scroll.ts (revealSelectedTab, wired from app.ts) scrolls the selected tab into view on every aria-selected change, including a deep link.

    Playwright probe, production bundle, 390x844, deep-linking each URL cold (API mocked, throwaway spec, not committed):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions