Skip to content

Commit 3b406b5

Browse files
author
DavidQ
committed
`fix(state-inspector): align with full-height tool-shell layout pattern
- apply profiler/physics/replay non-fullscreen + fullscreen shell-fill behavior - set viewport-based container sizing (`100dvh` calc) for available-height fill - enforce page/container/shell flex chain so columns extend to footer region - keep left/center/right panels stretched with internal scrolling - make JSON input and inspection snapshot panes fill panel height and scroll internally - preserve existing inspector behavior while standardizing layout parity`
1 parent 85d25e0 commit 3b406b5

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

src/engine/theme/tool-shell.css

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,60 @@ body[data-tool-id="replay-visualizer"].tool-shell-page #replayEventList {
247247
overflow: auto;
248248
}
249249

250+
body[data-tool-id="state-inspector"].tool-shell-page .tool-shell-container {
251+
flex: 1 1 auto;
252+
height: calc(100dvh - 120px);
253+
min-height: 0;
254+
display: flex;
255+
flex-direction: column;
256+
}
257+
258+
body[data-tool-id="state-inspector"].tool-shell-page {
259+
min-height: 100dvh;
260+
display: flex;
261+
flex-direction: column;
262+
}
263+
264+
body[data-tool-id="state-inspector"].tool-shell-page > .is-collapsible,
265+
body[data-tool-id="state-inspector"].tool-shell-page > [data-tools-platform-status] {
266+
flex: 0 0 auto;
267+
}
268+
269+
body[data-tool-id="state-inspector"].tool-shell-page .tool-shell-container {
270+
min-height: 420px;
271+
}
272+
273+
body[data-tool-id="state-inspector"].tool-shell-page .tool-shell {
274+
min-height: 0;
275+
max-height: none;
276+
height: 100%;
277+
flex: 1 1 auto;
278+
}
279+
280+
body[data-tool-id="state-inspector"].tool-shell-page .tool-shell__left,
281+
body[data-tool-id="state-inspector"].tool-shell-page .tool-shell__center,
282+
body[data-tool-id="state-inspector"].tool-shell-page .tool-shell__right {
283+
min-height: 0;
284+
}
285+
286+
body[data-tool-id="state-inspector"].tool-shell-page .tool-shell__left > .debug-tool-panel,
287+
body[data-tool-id="state-inspector"].tool-shell-page .tool-shell__center > .debug-tool-panel,
288+
body[data-tool-id="state-inspector"].tool-shell-page .tool-shell__right > .debug-tool-panel {
289+
min-height: 0;
290+
height: 100%;
291+
display: flex;
292+
flex-direction: column;
293+
}
294+
295+
body[data-tool-id="state-inspector"].tool-shell-page #stateJsonInput,
296+
body[data-tool-id="state-inspector"].tool-shell-page #stateSnapshotOutput {
297+
min-height: 0;
298+
height: 100%;
299+
max-height: none;
300+
flex: 1 1 auto;
301+
overflow: auto;
302+
}
303+
250304
@media (max-width: 980px) {
251305
.tool-shell-page .tool-shell-container {
252306
width: min(100%, calc(100% - 16px));

0 commit comments

Comments
 (0)