Skip to content

Commit c0305aa

Browse files
committed
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>
1 parent 94399be commit c0305aa

2 files changed

Lines changed: 40 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: 22 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,20 @@ select:hover {
15991607
grid-row: 2;
16001608
min-height: 42px;
16011609
}
1610+
/* Motion-export buttons: one full-width row, split into two equal halves so
1611+
they read as a balanced pair instead of hugging the left of the grid. */
1612+
.tb-downloads {
1613+
display: flex;
1614+
grid-column: 1 / -1;
1615+
grid-row: 3;
1616+
gap: 6px;
1617+
}
1618+
.tb-downloads > .btn {
1619+
flex: 1 1 0;
1620+
min-width: 0;
1621+
min-height: 42px;
1622+
justify-content: center;
1623+
}
16021624
.intro { padding-left: 12px; padding-right: 12px; }
16031625
.layout { grid-template-columns: 1fr; }
16041626
.floor-guide-key {

0 commit comments

Comments
 (0)