Skip to content

fix(glitch): reclaim the EDIT tab's mobile layout - #283

Merged
andraderaul merged 1 commit into
mainfrom
fix/glitch-edit-mobile-layout
Jul 28, 2026
Merged

fix(glitch): reclaim the EDIT tab's mobile layout#283
andraderaul merged 1 commit into
mainfrom
fix/glitch-edit-mobile-layout

Conversation

@andraderaul

Copy link
Copy Markdown
Owner

What

On a phone the GLITCH//Studio EDIT tab wasted horizontal space and hid options:

  • the full-width Re-roll button sat on the Chain row and reserved ~90px, squeezing the effect chips into a narrow scroller;
  • the add-effect palette hid half its options behind a horizontal scroll even though there was plenty of vertical room.

Changes

  • Re-roll → icon on mobile. Collapses to its glyph on mobile so it stops eating the Chain row's width; the re-roll label returns from sm up. The aria-label carries the name at both sizes.
  • + matches the icon. The add-effect + chip grows to the Re-roll icon's 60×44 footprint on mobile so the two read as a matched pair, and shrinks back to a chip from sm up.
  • Palette wraps instead of scrolling. overflow-x-autoflex-wrap, so every Effect is visible at once on a phone. It's a set of options, not the ordered Chain, so surfacing all of them beats hiding half behind a scroll. Removed the now-obsolete min-w-0 (and its comment) that only existed to enable that scroll.

Verification

Measured live in a real browser at mobile / desktop widths:

mobile (≤390px) desktop (≥640px)
Re-roll icon, 60×44 ⟳ re-roll, 131px
+ chip 60×44 (matches icon) 25px chip
add-effect palette wraps to 3 rows of 2, 144px tall, no overflow one row

Panel reserves min-h-[240px] on mobile, so the wrapped palette (≤144px) fits with room to spare. Desktop layout is unchanged.

  • npm run check — clean
  • npm run typecheck — clean
  • @cyberdeck/glitch tests — 358 passing

🤖 Generated with Claude Code

On a phone the EDIT tab's Chain row was cramped by the full-width Re-roll
button, and the add-effect palette hid half its options behind a horizontal
scroll. Three changes give the row its width back and surface the whole palette:

- Re-roll collapses to its ⟳ icon on mobile (label returns from sm up), so it
  stops reserving ~90px on the Chain row.
- The add-effect "+" chip matches that icon's 60×44 footprint on mobile so the
  two read as a matched pair, and shrinks back to a chip on desktop.
- The "add effect" palette wraps instead of scrolling, so every Effect is
  visible at once on a phone.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
ascii-art-converter Ready Ready Preview, Comment Jul 28, 2026 1:29am
atlas-sprawl Ready Ready Preview, Comment Jul 28, 2026 1:29am
cyberdeck-golem Ready Ready Preview, Comment Jul 28, 2026 1:29am
glitch-studio Ready Ready Preview, Comment Jul 28, 2026 1:29am

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