Skip to content

fix(inspect): keep navigation tabs reachable in narrow panels - #397

Open
SaKaNa-Y wants to merge 1 commit into
devframes:mainfrom
SaKaNa-Y:fix/inspect-tabs-overflow
Open

SaKaNa-Y wants to merge 1 commit into
devframes:mainfrom
SaKaNa-Y:fix/inspect-tabs-overflow

Conversation

@SaKaNa-Y

@SaKaNa-Y SaKaNa-Y commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Important

Please take a moment to read this. Thank you!

I should include a brief explanation of the problem in my own words in every PR. If that explanation is missing, please @mention me and do not merge this PR until I have added it. You may also leave this PR unaddressed (because this means I have not fulfilled my responsibilities as the author).

If my explanation is unclear or difficult to follow, please ask me to clarify or provide reproduction steps or supporting evidence.

I welcome suggestions and counterarguments, especially questions about anything I may have overlooked. (Your feedback helps me learn and improve. 🙏)

I hold myself to this standard for every PR, regardless of its size.

Problem

In a narrow Inspector panel, the navigation tabs extend beyond the right edge. At 619px, Commands is partially clipped and History and Instances are hidden; horizontal scrolling does not reveal them.

Cause

The segmented tab list uses its content width. Its flex-item container retains the automatic minimum width and provides no horizontal scrolling, so the app's overflow: hidden clips the excess content.

Fix

Add min-w-0 overflow-x-auto to LayoutTabs so the tab container can shrink to the available space and scroll horizontally. The title and refresh button stay outside the scroll area, while wider panels retain the existing single-row layout.

Verification

  • Browser checks: at 619px, horizontal scrolling reveals Instances and selecting it opens its view; at 375px, Home/End switches tabs and brings them into view. The refresh button remains visible. At 1200px, all tabs fit without overflow.
  • pnpm lint, pnpm knip, and pnpm typecheck: passed.
  • CI=true pnpm test: 141 test files passed; 1,569 tests passed and 9 skipped.
  • No automated layout regression test was added; the overflow behavior was verified in the browser.

@coldtea-pr-lens

coldtea-pr-lens Bot commented Sep 16, 2026

Copy link
Copy Markdown

◈ PR Lens

🟢 +0 new · 🟠 ~1 changed · 🔴 -0 removed · 0 flows · 1 file · commit d48f6fc


Architecture

Architecture diagram for devframes/devframe at d48f6fc

1 component touched across 4 lanes.

Open the interactive canvas


Data flow

No data-flow sequence changed in this PR.


View

  • Architecture lens
  • Data flow lens
  • Expand every detail

Tip

The diagrams are links. Click one to open it on the canvas, then press W or click play to walk through the change.

🪧 More tips
  • Run npx skills add coldteadotai/pr-lens, then tell your coding agent: "Diagram the change you just made with PR Lens and attach it to the pull request."
  • Run npx @coldtea/pr-lens-cli analyze --base origin/main on a branch, then npx @coldtea/pr-lens-cli render .pr-lens/graph.json. Same lenses, your own model key, before the pull request exists.
  • Untick Architecture lens or Data flow lens under View to hide a diagram, or tick Expand every detail to open every section. The comment redraws in a few seconds.
  • Click the link under each diagram to open it on a canvas you can zoom, pan and step through.
  • Open a diagram on the canvas, then press W or click play to walk through the change one step at a time.
  • The CLI's render reads .github/pr-lens.yml and applies your renames, exclusions and lane pins at draw time.
  • Set github.comment.collapsed: true in .github/pr-lens.yml to fold the comment behind one View architecture and data flow row. Drawing still runs on every push.
  • Add .github/workflows/pr-lens.yml with coldteadotai/pr-lens/packages/action@v0 and your model provider's key as its api-key to run PR Lens from your own CI. Any /chat/completions endpoint works.
  • Push a commit and the comment redraws for the new head. A slow older run never overwrites a newer one.
  • Switch GitHub to dark mode and the diagrams follow. The moving dots are this pull request's data in motion.

Thanks for using PR Lens! It's built by Coldtea, free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
devframe Skipped Skipped Sep 16, 2026 3:03pm UTC

@SaKaNa-Y SaKaNa-Y changed the title fix(inspect): allow horizontal scrolling of navigation tabs fix(inspect): keep navigation tabs reachable in narrow panels Sep 16, 2026
@SaKaNa-Y

Copy link
Copy Markdown
Contributor Author

Added horizontal scrolling to the Devframe Inspector navigation tabs.

before:
截屏2026-09-16 23 05 12

now:
截屏2026-09-16 23 01 54

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant