Repository navigation
fix(dashboard): resolve Leaflet zero-height rendering in TraceView - #87
Merged
Merged
Conversation
Simplify the Trace layout hierarchy to fix Leaflet map container
collapsing to 0px height. The root cause was flex height propagation
breaking due to excessive nesting and conflicting overflow properties.
Changes:
- Layout.css: Change .content from overflow-y:auto to overflow:hidden
and add display:flex/flex-direction:column for proper height propagation
- TraceView.tsx: Add trace-workspace wrapper, remove unnecessary nesting
- TraceView.css: Simplify to flat flex hierarchy with explicit height
ownership (trace-view -> trace-main -> trace-workspace -> map-area)
- MapCanvas.css: Remove flex properties from .map-canvas, use simple
width/height 100% for proper container sizing
New layout hierarchy:
trace-view (height:100vh)
├── trace-views (flex:0 0 auto)
└── trace-main (flex:1, min-height:0)
├── filter-palette (width:280px)
└── trace-workspace (flex:1, flex-dir:column)
├── map-area (flex:1, min-height:0)
└── event-stream (height:200px)
The event stream remains docked at bottom with fixed 200px height.
Leaflet container now receives proper height from parent chain.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Fix Leaflet map container collapsing to 0px height by simplifying the Trace layout hierarchy and making height ownership explicit.
Root Cause
The
leaflet-containerwas rendering withheight: 0pxbecause flex height propagation was breaking due to:overflow-y: autoon.contentcausing nested scroll containersChanges
Layout.css
.contentfromoverflow-y: autotooverflow: hiddendisplay: flexandflex-direction: columnfor proper height propagationTraceView.tsx
trace-workspacewrapper around map and event stream.trace-content,.trace-canvas)map-areawrapper for consistent sizingTraceView.css
trace-viewusesheight: 100vhdirectlytrace-mainuses horizontal flex with filter-palette and trace-workspacetrace-workspaceusesflex-direction: columnwithflex: 1andmin-height: 0map-areahasflex: 1andmin-height: 0for Leaflet containerMapCanvas.css
.map-canvaswidth: 100%; height: 100%for proper container sizingNew Layout Hierarchy
Success Criteria
leaflet-containerheight > 500pxTesting
Build verified successfully with no TypeScript or Vite errors.
This PR was created by an AI agent (OpenHands) on behalf of the user.
@tamzrod can click here to continue refining the PR