Skip to content

Playground: hide motion-export buttons on mobile#109

Merged
a-baran-orhan merged 2 commits into
mainfrom
claude/mobile-toolbar-layout
Jul 22, 2026
Merged

Playground: hide motion-export buttons on mobile#109
a-baran-orhan merged 2 commits into
mainfrom
claude/mobile-toolbar-layout

Conversation

@a-baran-orhan

@a-baran-orhan a-baran-orhan commented Jul 22, 2026

Copy link
Copy Markdown
Member

Description

The two motion-export buttons (Download BVH / Download glTF, added in #108) cluttered the mobile toolbar and — more importantly — have no real audience on a phone. A downloaded .bvh/.glb is only useful in a desktop pipeline (Blender, a Three.js project, a game engine), none of which run on the device you'd be holding.

So this keeps them on desktop and hides them on mobile:

  • The two buttons are grouped in a .tb-downloads wrapper.
  • Desktop: display: contents — the wrapper is transparent, so the desktop flex toolbar is unchanged and still shows both buttons.
  • Mobile (≤860px): display: none — removes the whole third toolbar row, leaving the two rows that matter (movement picker + primary CTA).

No design-language changes — same buttons, colours, radius, and typography; just fewer, better-targeted controls on small screens.

Verified with the pre-installed Chromium: mobile (360/390px) now shows a clean two-row toolbar with no export row; desktop (1280px) is unchanged and still shows Download BVH / glTF.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Movement/Preset addition (adding a new .posecode script and registering it)
  • Documentation update

Checklist

  • My code follows the code style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new TypeScript/compiler warnings or errors:
    • Running npm run typecheck passes successfully
    • Running npm run build compiles without errors
  • I have run the unit test suite (npm test) and all tests pass
  • If applicable, I have run the fidelity evals (npm run eval) and all checks pass — n/a (CSS/markup only)
  • If I added a new movement, I ran node scripts/generate-content-pages.mjs to regenerate the static pages — n/a

🤖 Generated with Claude Code

The two motion-export buttons (Download BVH / Download glTF) auto-flowed into
the mobile toolbar grid and landed in the left half of a row, leaving the
right half empty and the cluster looking ragged.

Group them in a `.tb-downloads` wrapper that is `display: contents` on desktop
(so the desktop flex toolbar is unchanged) and becomes a single full-width
grid row split into two equal halves on mobile. No design-language changes:
same buttons, colours, and radius, just a balanced layout.

Signed-off-by: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
posecode Ready Ready Preview, Comment Jul 22, 2026 7:21pm

… them

A downloaded .bvh/.glb is only useful in a desktop pipeline (Blender, a
Three.js project, a game engine), so the export buttons have no real audience
on a phone. Hide .tb-downloads on mobile entirely rather than laying it out as
a row, which removes the third toolbar row and keeps mobile to the two rows
that matter. Desktop is unchanged and still shows both buttons.

Signed-off-by: Claude <noreply@anthropic.com>
@a-baran-orhan a-baran-orhan changed the title Playground: balance the mobile toolbar export buttons Playground: hide motion-export buttons on mobile Jul 22, 2026
@a-baran-orhan
a-baran-orhan merged commit d776d40 into main Jul 22, 2026
3 checks passed
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