Skip to content

Fix desktop topbar overflow when auth inputs are shown - #112

Open
c2-07 wants to merge 1 commit into
braedonsaunders:mainfrom
c2-07:fix/topbar-auth-overflow
Open

c2-07 wants to merge 1 commit into
braedonsaunders:mainfrom
c2-07:fix/topbar-auth-overflow

Conversation

@c2-07

@c2-07 c2-07 commented Nov 26, 2026 •

Copy link
Copy Markdown

Problem

On desktop (> 980px), selecting Token (PAT) or GitHub App adds credential inputs inside .repo-input-group. Because .repo-input-group had flex: 1; min-width: 0 with flex-shrink: 0 children and no overflow containment, its buttons (such as Download ZIP) overflowed its right edge and painted directly over .topbar-actions (PR, Export, Share, Light).

Before / After

Token (PAT)

Before:
Before - Token (PAT) overflow

After:
After - Token (PAT) single-row compact

GitHub App

Before:
Before - GitHub App overflow

After:
After - GitHub App single-row compact

Changes (index.html)

  • Keep the desktop topbar single-row (48px) without overlap:
    • Set .topbar to height: 48px; min-height: 48px; flex-wrap: nowrap; gap: 12px; and flex-shrink: 0 on .logo and .topbar-actions.
    • Added overflow-x: auto; scrollbar-width: none; on .repo-input-group as a non-overlapping safety net, reduced .repo-input-group > .repo-input:first-child min-width from 220px to 140px, and hid empty .auth-inputs:empty so No Auth does not occupy an extra flex gap.
  • Progressive icon-only compacting (matching the existing post-analysis icon-only behavior):
    • Wrapped the !data topbar button text labels in <span class="btn-label"> (all buttons already have icons and title tooltips).
    • Stage 1: collapses .topbar-actions labels (PR, Export, Share, Light/Dark) to 32px icon buttons at <= 1480px (or <= 1680px when auth inputs are visible).
    • Stage 2: collapses secondary .repo-input-group button labels (Excludes, Open Folder, Open ZIP, Download ZIP) to 32px icon buttons at <= 1260px (or <= 1380px with PAT / <= 1520px with GitHub App), keeping the primary Analyze label visible.
    • Left @media (max-width: 980px) mobile layout rules untouched.

Verification

  • Verified locally in the browser at 1280x800 across No Auth, Token (PAT), and GitHub App with a GitHub URL entered (showing Download ZIP): 48px single-row height, 0 element overlaps, and 0px horizontal scroll overflow in all three modes.
  • Ran node --test tests/*.test.mjs tests/*.smoke.js: 253/254 passed (the 1 failure in tests/cli-codeflow.test.mjs is pre-existing on main).

@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown

@c2-07 is attempting to deploy a commit to the braedonsaunders' projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Owner

Thanks for this. The PAT and GitHub App inputs pushing Download ZIP over the PR/Export/Share buttons is a real annoyance, and collapsing to icon-only in stages fits how the post-analysis topbar already works. I'll review it shortly.

This branch has not been deployed

No deployments
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.

2 participants