Skip to content

ux: desktop multi-column dashboard — use the horizontal space (#54)#56

Merged
dmccoystephenson merged 1 commit into
mainfrom
ux/desktop-multicolumn-layout
Jun 8, 2026
Merged

ux: desktop multi-column dashboard — use the horizontal space (#54)#56
dmccoystephenson merged 1 commit into
mainfrom
ux/desktop-multicolumn-layout

Conversation

@dmccoystephenson

Copy link
Copy Markdown
Member

Summary

Fixes #54. On desktop the screen's width was wasted: .game-layout was a single flex column at every width, so the 800×600 map sat centered with every panel (Status, Policy, Settings, Armies) stacked below it and the left/right thirds left empty — you had to scroll to read stats or manage armies while the map was up top. (The docs even described "right-side" panels that the single-column layout never provided.)

Change

The layout is split into two columns:

  • .game-main — controls, the map canvas, and the selected-army split panel.
  • .game-sidebar — Game Status & Stats, Armies, Change Policy, Settings.

They stack as before on narrow/mobile widths; at ≥ 1200px they sit side by side and the container widens (max-width 1340px), so the map and the key panels are visible together without scrolling. Panel order is now handled by CSS order in the sidebar (Status, Armies, Policy, Settings) for both layouts, replacing the old mobile-only direct-child order rules — which also fixes the selected-army panel previously rendering above the controls on mobile.

No JS changes (elements are still addressed by id); the "open all sections on desktop" behavior is unchanged.

Test plan

  • Wide window (≥1200px): map on the left, panels in a right-hand column; both visible without scrolling.
  • Mid/narrow (≤1199px) and mobile: single stacked column as before, order controls → map → selected panel → Status → Armies → Policy → Settings.
  • Selecting an army, splitting, policies, settings, and the armies list all still work in both layouts.

Related: #55 (make this dashboard configurable/persisted per account).

🤖 Generated with Claude Code

#54)

On desktop the layout wasted the screen's width: .game-layout was a single flex
column at every size, so the 800x600 map sat centered with every panel stacked
below it and the left/right thirds left empty — forcing the player to scroll to
read stats or manage armies while watching the map. The docs even described
"right-side" panels that the single-column layout never actually provided.

This splits the layout into a map column (controls, canvas, the selected-army
panel) and a sidebar column (Status, Armies, Policy, Settings). They stack as
before on narrow/mobile widths; at >=1200px they sit side by side and the
container widens, so the map and the key panels are visible together without
scrolling. Panel order is now driven by CSS `order` in the sidebar (Status,
Armies, Policy, Settings) for both layouts, replacing the old mobile-only
direct-child order rules, which also fixes the selected-army panel sitting above
the controls on mobile.

Closes #54

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dmccoystephenson dmccoystephenson merged commit ffe639a into main Jun 8, 2026
2 checks passed
@dmccoystephenson dmccoystephenson deleted the ux/desktop-multicolumn-layout branch June 8, 2026 01:09
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.

Desktop layout: use the horizontal space (multi-column dashboard) instead of one stacked column

1 participant