fix(ui): scale WORLD MAP to fill its tab pane without an internal scrollbar (#36)
CI / build + unit + e2e (pull_request) Failing after 13m30s

This commit is contained in:
2026-09-29 12:59:16 +00:00
parent 3a786913df
commit bc6bc7dd07
5 changed files with 46 additions and 19 deletions
+6 -3
View File
@@ -383,12 +383,15 @@ export function MissionControl() {
</PanelHeader>
<PanelContent style={{ padding: 0, flex: 1, minHeight: 0, overflowY: 'auto' }}>
{/* Flex column at full height so a tab can fill the pane (#36); other tabs stay
content-sized and overflow into this same scroll area as before. */}
<Tabs
value={activeTab ?? 'world-map'}
onValueChange={(v) => {
setActiveTab(v)
window.localStorage.setItem(ACTIVE_TAB_KEY, v) // #27 — keep the tab across refreshes
}}
style={{ display: 'flex', flexDirection: 'column', height: '100%' }}
>
<TabsList
style={{
@@ -409,9 +412,9 @@ export function MissionControl() {
<TabsTrigger value="event-log">EVENT LOG</TabsTrigger>
</TabsList>
{/* WORLD MAP TAB — live data from /api/world */}
<TabsContent value="world-map" style={{ margin: 0, padding: '1rem' }}>
<WorldMapPanel height={380} onJumped={refreshSystem} />
{/* WORLD MAP TAB — live data from /api/world; fills the whole pane (#36) */}
<TabsContent value="world-map" style={{ margin: 0, padding: '1rem', flex: 1, minHeight: 0 }}>
<WorldMapPanel height={380} narrow={narrow} onJumped={refreshSystem} />
</TabsContent>
{/* LOCAL SYSTEM TAB — live data (state owned by MissionControl; scans report up) */}