Skip to content

Commit 85d25e0

Browse files
author
DavidQ
committed
`fix(replay-visualizer): adopt full-height tool-shell layout parity
- apply same non-fullscreen/fullscreen shell fill pattern used by profiler/physics - use viewport-based available-height container sizing (`100dvh` calc) - enforce body/container/shell flex chain so columns extend to footer region - keep left/center/right panels stretched with internal scrolling panes - ensure replay input, event list, and event output remain scrollable without clipping - preserve existing replay functionality while aligning layout behavior`
1 parent 1890540 commit 85d25e0

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

src/engine/theme/tool-shell.css

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,70 @@ body[data-tool-id="physics-sandbox"].tool-shell-page #physicsSandboxOutput {
183183
overflow: auto;
184184
}
185185

186+
body[data-tool-id="replay-visualizer"].tool-shell-page .tool-shell-container {
187+
flex: 1 1 auto;
188+
height: calc(100dvh - 120px);
189+
min-height: 0;
190+
display: flex;
191+
flex-direction: column;
192+
}
193+
194+
body[data-tool-id="replay-visualizer"].tool-shell-page {
195+
min-height: 100dvh;
196+
display: flex;
197+
flex-direction: column;
198+
}
199+
200+
body[data-tool-id="replay-visualizer"].tool-shell-page > .is-collapsible,
201+
body[data-tool-id="replay-visualizer"].tool-shell-page > [data-tools-platform-status] {
202+
flex: 0 0 auto;
203+
}
204+
205+
body[data-tool-id="replay-visualizer"].tool-shell-page .tool-shell-container {
206+
min-height: 420px;
207+
}
208+
209+
body[data-tool-id="replay-visualizer"].tool-shell-page .tool-shell {
210+
min-height: 0;
211+
max-height: none;
212+
height: 100%;
213+
flex: 1 1 auto;
214+
}
215+
216+
body[data-tool-id="replay-visualizer"].tool-shell-page .tool-shell__left,
217+
body[data-tool-id="replay-visualizer"].tool-shell-page .tool-shell__center,
218+
body[data-tool-id="replay-visualizer"].tool-shell-page .tool-shell__right {
219+
min-height: 0;
220+
}
221+
222+
body[data-tool-id="replay-visualizer"].tool-shell-page .tool-shell__left > .debug-tool-panel,
223+
body[data-tool-id="replay-visualizer"].tool-shell-page .tool-shell__center > .debug-tool-panel,
224+
body[data-tool-id="replay-visualizer"].tool-shell-page .tool-shell__right > .debug-tool-panel {
225+
min-height: 0;
226+
height: 100%;
227+
display: flex;
228+
flex-direction: column;
229+
}
230+
231+
body[data-tool-id="replay-visualizer"].tool-shell-page #replayJsonInput,
232+
body[data-tool-id="replay-visualizer"].tool-shell-page #replayEventList,
233+
body[data-tool-id="replay-visualizer"].tool-shell-page #replayEventOutput {
234+
min-height: 0;
235+
max-height: none;
236+
}
237+
238+
body[data-tool-id="replay-visualizer"].tool-shell-page #replayJsonInput,
239+
body[data-tool-id="replay-visualizer"].tool-shell-page #replayEventOutput {
240+
height: 100%;
241+
flex: 1 1 auto;
242+
overflow: auto;
243+
}
244+
245+
body[data-tool-id="replay-visualizer"].tool-shell-page #replayEventList {
246+
flex: 1 1 auto;
247+
overflow: auto;
248+
}
249+
186250
@media (max-width: 980px) {
187251
.tool-shell-page .tool-shell-container {
188252
width: min(100%, calc(100% - 16px));

0 commit comments

Comments
 (0)