fix(ui): move NEXT TURN into the right pane — full width, no longer overlapped (#52)
This commit is contained in:
@@ -529,6 +529,14 @@ export function MissionControl() {
|
||||
)}
|
||||
</PanelContent>
|
||||
</Panel>
|
||||
|
||||
{/* #52 — the manual tick control (5b), moved in from the fixed bottom-right overlay:
|
||||
last child of the pane's flex column — full width, size MD, pinned to the pane
|
||||
bottom when the content is short (the wrapper's marginTop:auto) and scrolling
|
||||
with the pane when the cargo list is long. In normal flow, the active-tasks strip
|
||||
can no longer paint over it; the pane (unlike the tab content) is outside Radix's
|
||||
unmount, so it stays visible on every tab. */}
|
||||
<NextTurnButton turn={ship?.turn ?? null} onTicked={refreshAll} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -567,13 +575,9 @@ export function MissionControl() {
|
||||
<Badge variant="ACTIVE">SYS ONLINE</Badge>
|
||||
</footer>
|
||||
|
||||
{/* #44 — the manual tick control (5b): fixed bottom-right, outside the tab grid so it
|
||||
stays visible on every tab (Radix unmounts inactive tabs — the button only refreshes
|
||||
the snapshots this shell owns) */}
|
||||
<NextTurnButton turn={ship?.turn ?? null} onTicked={refreshAll} />
|
||||
|
||||
{/* #44 — the active-tasks strip: fixed bottom-left (same mount convention as the button —
|
||||
outside the tab grid so it stays visible on every tab). Data: the shell's system
|
||||
{/* #44 — the active-tasks strip: fixed bottom-left, outside the tab grid so it stays
|
||||
visible on every tab. (#52 moved the NEXT TURN button out of this fixed-overlay area
|
||||
and into the right pane, so the two can no longer overlap.) Data: the shell's system
|
||||
snapshot (JC-15) — refreshAll re-runs /api/system on every turn, so it updates on
|
||||
every shell refresh with no fetch of its own. */}
|
||||
<TaskStrip tasks={system?.tasks ?? []} />
|
||||
|
||||
Reference in New Issue
Block a user