Skip to content

Commit d776d40

Browse files
Playground: hide motion-export buttons on mobile (#109)
* playground: balance the mobile toolbar export buttons 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> * playground: hide motion-export buttons on mobile instead of balancing 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> --------- Signed-off-by: Claude <noreply@anthropic.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 94399be commit d776d40

2 files changed

Lines changed: 33 additions & 16 deletions

File tree

playground/play.html

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,24 @@
119119
<span class="ico-link" aria-hidden="true"></span
120120
><span class="lbl" aria-live="polite">Share</span>
121121
</button>
122-
<button
123-
id="download-bvh"
124-
class="btn ghost"
125-
aria-label="Download BVH"
126-
title="Download the movement as a .bvh motion file for Blender and other tools"
127-
>
128-
<span class="lbl" aria-live="polite">Download BVH</span>
129-
</button>
130-
<button
131-
id="download-gltf"
132-
class="btn ghost"
133-
aria-label="Download glTF"
134-
title="Download the movement as a .glb glTF asset (rig + animation) for Three.js and web pipelines"
135-
>
136-
<span class="lbl" aria-live="polite">Download glTF</span>
137-
</button>
122+
<div class="tb-downloads">
123+
<button
124+
id="download-bvh"
125+
class="btn ghost"
126+
aria-label="Download BVH"
127+
title="Download the movement as a .bvh motion file for Blender and other tools"
128+
>
129+
<span class="lbl" aria-live="polite">Download BVH</span>
130+
</button>
131+
<button
132+
id="download-gltf"
133+
class="btn ghost"
134+
aria-label="Download glTF"
135+
title="Download the movement as a .glb glTF asset (rig + animation) for Three.js and web pipelines"
136+
>
137+
<span class="lbl" aria-live="polite">Download glTF</span>
138+
</button>
139+
</div>
138140
<button
139141
id="copy-prompt"
140142
class="btn primary"

playground/src/style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,14 @@ select:hover {
301301
align-items: center;
302302
}
303303

304+
/* The two motion-export buttons are grouped so mobile can lay them out as one
305+
balanced row. On desktop the wrapper is transparent (`display: contents`),
306+
so the buttons stay direct children of the flex toolbar and the desktop row
307+
is unchanged. */
308+
.tb-downloads {
309+
display: contents;
310+
}
311+
304312
/* Movement-library trigger — the one content control in the topbar. Reads like
305313
a select (kicker, current movement, caret) but opens the full browse panel. */
306314
.lib-btn {
@@ -1599,6 +1607,13 @@ select:hover {
15991607
grid-row: 2;
16001608
min-height: 42px;
16011609
}
1610+
/* Motion export (BVH / glTF) is a desktop-pipeline action — a downloaded
1611+
.bvh/.glb is only useful in Blender, a Three.js project, or a game engine,
1612+
none of which live on the phone. Hide it on mobile to keep the toolbar to
1613+
the two rows that matter (movement + primary CTA); it stays on desktop. */
1614+
.tb-downloads {
1615+
display: none;
1616+
}
16021617
.intro { padding-left: 12px; padding-right: 12px; }
16031618
.layout { grid-template-columns: 1fr; }
16041619
.floor-guide-key {

0 commit comments

Comments
 (0)