LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 8, 2026, 7:54 PM
updatedAtNov 8, 2026, 9:43 PM
githubUrlhttps://github.com/neomjs/neo/issues/20599
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 8, 2026, 9:43 PM
milestonev13.4

The portal news tab bar clips its last tabs on portrait phones

neo-opus-ada
neo-opus-ada commented on Nov 8, 2026, 7:54 PM

Context

#20594 (the Videos tab, merged as 36e1805e99) gave the portal's news section its seventh tab. The operator asked for a follow-up: check the left-docked tab bar at portrait phone sizes, because one more tab could make it tight. Landscape is out of scope.

The Problem

I measured at dev 36e1805e99 on the dev server, headless, with Playwright's device descriptors. Each descriptor's viewport is the visible page area, smaller than the device screen by the browser and system bars: iPhone 13 is 390×664 of a 390×844 screen.

  • The seven rotated labels stack from 108 px to 883 px below the page top. Above them sit the 58 px portal header and the bar's 50 px top padding below 640 px width. The buttons are 81–142 px tall.
  • .portal-main-content clips with overflow-y: hidden, and the bar does not scroll, so a tab below the visible height cannot be reached.
Descriptor Visible viewport Last fully visible tab Cut off
iPhone SE 320×568 Blog Medium (partly), Pull Requests, Videos
iPhone 12 Mini 375×629 Blog Medium (partly), Pull Requests, Videos
iPhone 13 390×664 Medium Pull Requests (11 px showing), Videos
iPhone 15 Pro Max 430×739 Medium Pull Requests (partly), Videos
Pixel 7 412×839 Pull Requests Videos (47 of 92 px showing)

The live 13.3.1 site has six tabs, ending at 792 px, so Pull Requests is already cut off at every viewport above except Pixel 7. A real phone gains height when its browser toolbars collapse; the table is the expanded-toolbar case. The Videos tab reaches neomjs.com with 13.4. On these viewports its header would be hidden, and it would be reachable only by its route, #/news/videos.

The Architectural Reality

  • Portal.view.shared.TabContainer (apps/portal/view/shared/TabContainer.mjs) sets tabBarPosition: 'left'. Portal.view.news.TabContainer and Portal.view.examples.TabContainer extend it. The news subclass passes its own headerToolbar (cls only).
  • resources/scss/src/apps/portal/news/TabContainer.scss adds the 50 px top padding below 640 px, so the side-nav toggle stops covering the first tab (#8440).
  • The engine already ships the overflow behaviour. Neo.tab.plugin.Overflow (src/tab/plugin/Overflow.mjs) measures the header toolbar's main axis, which is height for a left or right dock. It moves headers that don't fit behind one control (fa-ellipsis-vertical on a vertical bar), whose menu activates them through the container's existing activeIndex. examples/tab/container/MainContainer.mjs enables it as headerToolbar: {plugins: [{module: TabOverflow}]}.

Design authority: Neo.tab.plugin.Overflow's @summary, "when headers exceed the available main-axis extent, overflowing tabs collapse behind one control whose menu reaches them."

The Fix

Enable Neo.tab.plugin.Overflow on the header toolbar of Portal.view.shared.TabContainer, so the news and examples sections both get it. tab.Container#headerToolbar is a plain config, so a subclass value replaces the parent's. The headerToolbar block that both subclasses repeat therefore moves into the shared class, and both copies are deleted. No portal-specific overflow code.

Choosing a hidden tab from the menu sets only activeIndex, which leaves a routed tab's URL on the old route: after choosing Videos it reads #/news/releases/13.3.1. The plugin therefore carries each hidden button's route policy into its menu item. Neo.menu.List navigates a plain route after its handler, while an editRoute header's item merges through Neo.Main.editRoute and carries no route, so other hash fields survive. Tabs without a route keep the activeIndex-only selection.

Acceptance Criteria

  • AC-1: At 390×664 and at 320×568 portrait, every news tab is either fully visible in the bar or listed in the overflow control's menu. Choosing Videos from the menu activates #/news/videos.
  • AC-2: At 1920×1080 the news bar shows all seven tabs and no overflow control.
  • AC-3: The examples section's bar is unchanged wherever its tabs fit.
  • AC-4: A portal e2e spec drives the 390×664 case. It fails on 36e1805e99, where Videos is neither visible nor in a menu, and passes with the fix.

Out of Scope

  • Landscape orientation.
  • The bar's visual design: rotated labels, icons, the 640 px top padding.

Avoided Traps

  • Hiding labels below a breakpoint: a design change that only moves the limit, since each new tab still costs height.
  • overflow-y: auto on the bar: a touch scroll with no affordance, so hidden tabs stay undiscoverable.
  • Portal-specific overflow code: the engine plugin already handles left-docked bars.

Related

Follow-up to #20589 / #20594. Prior mobile fix on the same bar: #8440.

Live latest-open + closed sweep: I checked the latest 20 open issues and searched closed issues ("portal tab mobile overflow", "news tabs phone", "portal news mobile TabContainer"), reading #8440 in full. I also checked A2A claims over the last 30 messages, Memory Core for the symptom, and my own open assignments, at 2026-11-08T18:53Z. No equivalent or prior exclusion found.

Owner: @neo-opus-ada, as the direct follow-up to the Videos tab. Proposed for 13.4, where the Videos tab ships; the operator decides.

Origin Session ID: 64c57d74-ca7f-4b50-8027-fb2811cd127e Retrieval Hint: "portal news tab bar portrait phone clipped Neo.tab.plugin.Overflow left dock"

tobiu referenced in commit 4013eff - "fix(portal): section tabs fold overflow behind one control (#20599) (#20603) on Nov 8, 2026, 9:43 PM
tobiu closed this issue on Nov 8, 2026, 9:43 PM