feat: make app workspaces resizable
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
<a href="#inspect-step" data-workflow-step="4"><span>4</span><strong>확인</strong><small>Map · 지표</small></a>
|
||||
</nav>
|
||||
|
||||
<main class="camera-layout">
|
||||
<aside class="control-panel" aria-label="입력 및 시뮬레이션 설정">
|
||||
<main class="camera-layout" id="camera-layout" data-split-layout>
|
||||
<aside class="control-panel" id="camera-controls" data-split-panel aria-label="입력 및 시뮬레이션 설정">
|
||||
<section class="workflow-card input-card" id="input-step" data-workflow-section="1">
|
||||
<div class="step-heading">
|
||||
<span class="step-number">1</span>
|
||||
@@ -156,7 +156,20 @@
|
||||
</section>
|
||||
</aside>
|
||||
|
||||
<section class="scene-workspace" aria-label="Acoustic image workspace">
|
||||
<div
|
||||
class="split-handle"
|
||||
id="camera-split-handle"
|
||||
role="separator"
|
||||
tabindex="0"
|
||||
aria-label="분석 설정 패널 너비 조절"
|
||||
aria-controls="camera-controls"
|
||||
aria-orientation="vertical"
|
||||
data-split-resizer
|
||||
data-storage-key="micarrsim.camera.control-panel-width"
|
||||
title="드래그하거나 방향키로 너비 조절 · Enter/더블클릭으로 초기화"
|
||||
></div>
|
||||
|
||||
<section class="scene-workspace" id="camera-workspace" aria-label="Acoustic image workspace">
|
||||
<div class="workspace-heading">
|
||||
<div><span class="compact-label">CURRENT SCENE</span><h1 id="workspace-title">음향 장면</h1></div>
|
||||
<p class="workspace-meta" id="scene-meta">장면을 불러오고 있습니다.</p>
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
localizationAlgorithmSupportsBackend,
|
||||
} from "/packages/acoustics-core/localization-algorithms.js";
|
||||
import { downloadJson, readJsonFile } from "/packages/contracts/io.js";
|
||||
import { createSplitPane } from "/packages/ui/split-pane.js";
|
||||
import {
|
||||
validateArrayDefinition,
|
||||
validateExperiment,
|
||||
@@ -136,6 +137,19 @@ const elements = {
|
||||
validationMessage: byId("validation-message"),
|
||||
};
|
||||
|
||||
const layoutSplitPane = createSplitPane({
|
||||
container: byId("camera-layout"),
|
||||
separator: byId("camera-split-handle"),
|
||||
panel: byId("camera-controls"),
|
||||
panelSide: "start",
|
||||
storageKey: "micarrsim.camera.control-panel-width",
|
||||
defaultSize: 420,
|
||||
minSize: 320,
|
||||
maxSize: 720,
|
||||
minMainSize: 560,
|
||||
enabledMediaQuery: "(min-width: 981px)",
|
||||
});
|
||||
|
||||
const state = {
|
||||
arrayDefinition: null,
|
||||
scene: null,
|
||||
@@ -472,11 +486,13 @@ function renderDocumentSummary() {
|
||||
line.className = "source-line";
|
||||
const name = document.createElement("strong");
|
||||
name.textContent = source.name;
|
||||
name.title = source.name;
|
||||
const detail = document.createElement("span");
|
||||
detail.textContent =
|
||||
`${describeSignal(source.signal)} · ` +
|
||||
`(${source.position.map((value) => formatNumber(value, 2)).join(", ")}) m` +
|
||||
(source.trajectory?.length ? ` · 이동 ${source.trajectory.length} keyframes` : "");
|
||||
detail.title = detail.textContent;
|
||||
line.append(name, detail);
|
||||
elements.sourceSummary.append(line);
|
||||
}
|
||||
@@ -499,6 +515,7 @@ function renderAssets() {
|
||||
row.className = `asset-status ${status.ready ? "is-ready" : status.error ? "is-error" : ""}`;
|
||||
const label = document.createElement("strong");
|
||||
label.textContent = status.descriptor.fileName;
|
||||
label.title = status.descriptor.fileName;
|
||||
const value = document.createElement("span");
|
||||
value.textContent = status.ready ? "연결됨" : status.error ? "오류" : "파일 필요";
|
||||
value.title = status.error ?? "";
|
||||
@@ -526,6 +543,8 @@ function renderBandEditors() {
|
||||
input.dataset.bandIndex = String(index);
|
||||
input.dataset.bandKey = key;
|
||||
input.setAttribute("aria-label", `${band.id} ${label}`);
|
||||
input.title = label;
|
||||
if (type !== "color") input.placeholder = label;
|
||||
if (type === "number") {
|
||||
input.min = "0";
|
||||
input.step = "1";
|
||||
@@ -1879,6 +1898,7 @@ function installActionListeners() {
|
||||
sceneVisualization.destroy();
|
||||
arrayVisualization.destroy();
|
||||
assetRuntime.dispose();
|
||||
layoutSplitPane.destroy();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -100,8 +100,10 @@
|
||||
.workflow-strip small { overflow: hidden; color: var(--muted); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
.camera-layout {
|
||||
--control-panel-width: 420px;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: minmax(320px, 360px) minmax(620px, 1fr);
|
||||
grid-template-columns: var(--control-panel-width) 12px minmax(0, 1fr);
|
||||
width: min(1880px, 100%);
|
||||
min-height: calc(100vh - 103px);
|
||||
margin: 0 auto;
|
||||
@@ -109,6 +111,7 @@
|
||||
.control-panel {
|
||||
position: sticky;
|
||||
top: 103px;
|
||||
min-width: 0;
|
||||
align-self: start;
|
||||
overflow-y: auto;
|
||||
max-height: calc(100vh - 103px);
|
||||
@@ -116,8 +119,16 @@
|
||||
border-right: 1px solid var(--line);
|
||||
background: rgb(12 24 21 / 88%);
|
||||
backdrop-filter: blur(18px);
|
||||
container-name: camera-controls;
|
||||
container-type: inline-size;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
.camera-layout > .split-handle {
|
||||
position: sticky;
|
||||
top: 103px;
|
||||
height: calc(100vh - 103px);
|
||||
align-self: start;
|
||||
}
|
||||
.control-panel .workflow-card {
|
||||
margin: 0;
|
||||
padding: 14px;
|
||||
@@ -160,7 +171,8 @@
|
||||
}
|
||||
.file-choice input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
|
||||
.file-sequence { color: var(--mint); font: 700 .58rem ui-monospace, SFMono-Regular, Consolas, monospace; }
|
||||
.file-choice strong, .file-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.file-choice > span:last-of-type { min-width: 0; }
|
||||
.file-choice strong, .file-choice small { display: block; min-width: 0; overflow-wrap: anywhere; }
|
||||
.file-choice strong { font-size: .68rem; }
|
||||
.file-choice small { margin-top: 2px; color: var(--muted); font-size: .56rem; }
|
||||
|
||||
@@ -176,10 +188,13 @@
|
||||
.compact-label, .mode-kicker { color: var(--mint); font: 750 .56rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }
|
||||
.builder-link { color: var(--cyan); font-size: .6rem; text-decoration: none; }
|
||||
.source-summary, .asset-list { display: grid; gap: 6px; margin-top: 8px; }
|
||||
.source-line { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .63rem; }
|
||||
.source-line strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
|
||||
.source-line { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px; color: var(--muted); font-size: .63rem; }
|
||||
.source-line strong, .source-line span { min-width: 0; overflow-wrap: anywhere; }
|
||||
.source-line strong { color: var(--text); }
|
||||
.source-line span { text-align: right; }
|
||||
.asset-status {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
@@ -189,7 +204,7 @@
|
||||
color: var(--muted);
|
||||
font-size: .61rem;
|
||||
}
|
||||
.asset-status strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
|
||||
.asset-status strong { min-width: 0; color: var(--text); overflow-wrap: anywhere; }
|
||||
.asset-status.is-ready span { color: var(--mint); }
|
||||
.asset-status.is-error span { color: var(--danger); }
|
||||
.asset-empty { color: var(--muted); font-size: .62rem; }
|
||||
@@ -199,6 +214,7 @@
|
||||
.field > span { color: var(--muted); font-size: .61rem; font-weight: 650; }
|
||||
.field input, .field select, .band-editor input, .compact-select select {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 34px;
|
||||
padding: 7px 8px;
|
||||
border: 1px solid var(--line);
|
||||
@@ -244,7 +260,7 @@
|
||||
.band-editor-list { display: grid; gap: 7px; margin-top: 8px; }
|
||||
.band-editor {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(66px, 1fr) minmax(55px, .72fr) minmax(55px, .72fr) 30px;
|
||||
grid-template-columns: minmax(72px, 1fr) repeat(2, minmax(58px, .72fr)) 38px 30px;
|
||||
gap: 5px;
|
||||
padding: 7px;
|
||||
border: 1px solid var(--line);
|
||||
@@ -301,9 +317,10 @@ details[open] > summary::after { content: "−"; }
|
||||
border-radius: 12px;
|
||||
background: #0b1714;
|
||||
}
|
||||
.validation-card > :last-child { min-width: 0; }
|
||||
.validation-dot { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 3px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgb(145 170 162 / 8%); }
|
||||
.validation-card strong { font-size: .7rem; }
|
||||
.validation-card p { margin: 3px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.45; }
|
||||
.validation-card strong { font-size: .7rem; overflow-wrap: anywhere; }
|
||||
.validation-card p { margin: 3px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.45; overflow-wrap: anywhere; }
|
||||
.validation-card.is-valid .validation-dot { background: var(--mint); box-shadow: 0 0 0 4px rgb(101 242 191 / 10%); }
|
||||
.validation-card.is-invalid .validation-dot { background: var(--danger); box-shadow: 0 0 0 4px rgb(255 123 115 / 10%); }
|
||||
.validation-card.is-warning .validation-dot { background: var(--amber); box-shadow: 0 0 0 4px rgb(255 197 110 / 10%); }
|
||||
@@ -359,7 +376,7 @@ html[data-run-state="running"] #snapshot-mode { border-color: var(--mint); box-s
|
||||
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; margin-top: 9px; }
|
||||
.metric-card { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #0b1714; }
|
||||
.metric-card span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .6rem; }
|
||||
.metric-card strong { display: block; overflow: hidden; font-size: 1rem; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.metric-card strong { display: block; min-width: 0; font-size: 1rem; letter-spacing: -.03em; overflow-wrap: anywhere; }
|
||||
.metric-card small { display: block; margin-top: 4px; color: var(--muted); font-size: .57rem; }
|
||||
.history-section, .help-panel { margin-top: 9px; border-radius: 11px; }
|
||||
.history-section > summary, .help-panel > summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 34px 10px 11px; }
|
||||
@@ -369,7 +386,7 @@ html[data-run-state="running"] #snapshot-mode { border-color: var(--mint); box-s
|
||||
.history-list { display: grid; gap: 7px; margin-top: 9px; }
|
||||
.history-empty { padding: 10px; color: var(--muted); font-size: .65rem; text-align: center; }
|
||||
.history-card { display: grid; grid-template-columns: minmax(140px, 1.5fr) repeat(4, minmax(72px, .72fr)); gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #0b1714; }
|
||||
.history-card strong, .history-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.history-card strong, .history-card span { min-width: 0; overflow-wrap: anywhere; }
|
||||
.history-card strong { font-size: .69rem; }
|
||||
.history-card span { color: var(--muted); font-size: .6rem; }
|
||||
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
|
||||
@@ -379,7 +396,6 @@ html[data-run-state="running"] #snapshot-mode { border-color: var(--mint); box-s
|
||||
.is-hidden { display: none !important; }
|
||||
|
||||
@media (max-width: 1240px) {
|
||||
.camera-layout { grid-template-columns: minmax(300px, 330px) minmax(560px, 1fr); }
|
||||
.mode-grid { grid-template-columns: 1fr; }
|
||||
.mode-card--snapshot { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; }
|
||||
.mode-card--snapshot > p { grid-column: 1; }
|
||||
@@ -388,6 +404,7 @@ html[data-run-state="running"] #snapshot-mode { border-color: var(--mint); box-s
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.camera-layout { grid-template-columns: minmax(0, 1fr); }
|
||||
.camera-layout > .split-handle { display: none; }
|
||||
.control-panel, .scene-workspace { width: 100%; min-width: 0; }
|
||||
.control-panel { position: static; overflow: visible; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
|
||||
.scene-workspace { padding-top: 14px; }
|
||||
@@ -431,3 +448,59 @@ html[data-run-state="running"] #snapshot-mode { border-color: var(--mint); box-s
|
||||
.metric-grid { grid-template-columns: 1fr 1fr; }
|
||||
.overlay-toolbar { justify-content: flex-start; }
|
||||
}
|
||||
|
||||
@container camera-controls (max-width: 350px) {
|
||||
.input-file-grid,
|
||||
.quick-field-grid,
|
||||
.advanced-field-grid,
|
||||
.output-actions {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.field--wide {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.source-line {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.source-line span {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.advanced-settings > summary {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.band-editor {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr)) 38px 32px;
|
||||
grid-template-rows: repeat(2, minmax(34px, auto));
|
||||
}
|
||||
|
||||
.band-editor input:nth-child(1) {
|
||||
grid-column: 1 / 3;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.band-editor input:nth-child(2) {
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.band-editor input:nth-child(3) {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.band-editor input:nth-child(4) {
|
||||
grid-column: 3;
|
||||
grid-row: 1 / 3;
|
||||
}
|
||||
|
||||
.band-editor__remove {
|
||||
grid-column: 4;
|
||||
grid-row: 1 / 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="builder-layout">
|
||||
<section class="scene-workspace" aria-label="장면 편집 화면">
|
||||
<main class="builder-layout" id="builder-layout" data-split-layout>
|
||||
<section class="scene-workspace" id="builder-workspace" aria-label="장면 편집 화면">
|
||||
<div class="workspace-heading">
|
||||
<div>
|
||||
<p class="eyebrow">01 · 입력과 배치</p>
|
||||
@@ -97,7 +97,20 @@
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<aside class="control-panel" aria-label="장면 파라미터">
|
||||
<div
|
||||
class="split-handle"
|
||||
id="builder-split-handle"
|
||||
role="separator"
|
||||
tabindex="0"
|
||||
aria-label="장면 설정 패널 너비 조절"
|
||||
aria-controls="builder-controls"
|
||||
aria-orientation="vertical"
|
||||
data-split-resizer
|
||||
data-storage-key="micarrsim.builder.control-panel-width"
|
||||
title="드래그하거나 방향키로 너비 조절 · Enter/더블클릭으로 초기화"
|
||||
></div>
|
||||
|
||||
<aside class="control-panel" id="builder-controls" data-split-panel aria-label="장면 파라미터">
|
||||
<div class="runtime-line">
|
||||
<span class="status-chip status-chip--neutral" data-runtime-status>런타임 확인 중…</span>
|
||||
<span class="save-state" id="save-state">기본 장면</span>
|
||||
|
||||
@@ -2,6 +2,7 @@ import { encodeMonoPcm16Wav } from "/packages/acoustics-core/wav.js";
|
||||
import { decodeAudioFile, MAX_DECODED_AUDIO_BYTES } from "/packages/audio-io/browser-audio.js";
|
||||
import { downloadBlob, downloadJson, readJsonFile, sha256File } from "/packages/contracts/io.js";
|
||||
import { validateScene } from "/packages/contracts/validation.js";
|
||||
import { createSplitPane } from "/packages/ui/split-pane.js";
|
||||
import { createAudioRuntime } from "./audio-runtime.js";
|
||||
import { createSceneCanvas } from "./canvas-view.js";
|
||||
import {
|
||||
@@ -51,6 +52,19 @@ const elements = Object.fromEntries(
|
||||
);
|
||||
elements.validationCard = document.querySelector(".validation-card");
|
||||
|
||||
const layoutSplitPane = createSplitPane({
|
||||
container: byId("builder-layout"),
|
||||
separator: byId("builder-split-handle"),
|
||||
panel: byId("builder-controls"),
|
||||
panelSide: "end",
|
||||
storageKey: "micarrsim.builder.control-panel-width",
|
||||
defaultSize: 430,
|
||||
minSize: 360,
|
||||
maxSize: 720,
|
||||
minMainSize: 560,
|
||||
enabledMediaQuery: "(min-width: 1101px)",
|
||||
});
|
||||
|
||||
const state = {
|
||||
scene: null,
|
||||
selectedSourceId: null,
|
||||
@@ -173,12 +187,14 @@ function renderSourceCards() {
|
||||
dot.className = "source-card__dot";
|
||||
const name = document.createElement("strong");
|
||||
name.textContent = source.name;
|
||||
name.title = source.name;
|
||||
heading.append(dot, name);
|
||||
const signal = document.createElement("small");
|
||||
signal.textContent = describeSignal(source.signal);
|
||||
const position = document.createElement("small");
|
||||
const motion = Array.isArray(source.trajectory) ? ` · 이동 ${source.trajectory.length}점` : "";
|
||||
position.textContent = `x ${source.position[0].toFixed(2)} · y ${source.position[1].toFixed(2)} · z ${source.position[2].toFixed(2)} m${motion}`;
|
||||
button.title = [source.name, signal.textContent, position.textContent].join("\n");
|
||||
button.append(heading, signal, position);
|
||||
button.addEventListener("click", () => {
|
||||
state.selectedSourceId = source.id;
|
||||
@@ -369,7 +385,6 @@ function renderAssetList() {
|
||||
const label = document.createElement("span");
|
||||
label.className = "asset-chip__label";
|
||||
label.textContent = `${asset.kind} · ${asset.fileName}`;
|
||||
label.title = `${asset.id}${asset.sha256 ? ` · ${asset.sha256}` : ""}`;
|
||||
const availability = document.createElement("span");
|
||||
availability.className = "asset-chip__state";
|
||||
availability.textContent = state.assetErrors.has(asset.id)
|
||||
@@ -384,6 +399,7 @@ function renderAssetList() {
|
||||
remove.disabled = referenced;
|
||||
remove.title = referenced ? "먼저 이 asset을 사용하는 image/source/ambient를 변경하세요." : `${asset.fileName} 제거`;
|
||||
remove.addEventListener("click", () => removeAsset(asset.id));
|
||||
label.title = [asset.fileName, asset.id, asset.sha256].filter(Boolean).join(" · ");
|
||||
chip.append(label, availability, remove);
|
||||
list.append(chip);
|
||||
}
|
||||
@@ -1048,6 +1064,7 @@ window.addEventListener("beforeunload", (event) => {
|
||||
window.addEventListener("unload", () => {
|
||||
if (state.imageUrl) URL.revokeObjectURL(state.imageUrl);
|
||||
audioRuntime.dispose();
|
||||
layoutSplitPane.destroy();
|
||||
});
|
||||
|
||||
initialize().catch((error) => {
|
||||
|
||||
@@ -79,8 +79,10 @@
|
||||
}
|
||||
|
||||
.builder-layout {
|
||||
--control-panel-width: 430px;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
|
||||
grid-template-columns: minmax(0, 1fr) 12px var(--control-panel-width);
|
||||
min-height: calc(100vh - 65px);
|
||||
}
|
||||
|
||||
@@ -230,6 +232,7 @@
|
||||
|
||||
.source-card__heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
@@ -244,14 +247,15 @@
|
||||
}
|
||||
|
||||
.source-card strong {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.source-card small {
|
||||
min-width: 0;
|
||||
color: var(--muted);
|
||||
font: 600 0.72rem ui-monospace, SFMono-Regular, Consolas, monospace;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.asset-shelf {
|
||||
@@ -282,16 +286,15 @@
|
||||
max-width: 100%;
|
||||
padding: 8px 9px 8px 11px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
border-radius: 13px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.asset-chip__label {
|
||||
overflow: hidden;
|
||||
max-width: 210px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
min-width: 0;
|
||||
max-width: min(320px, 50vw);
|
||||
font-size: 0.74rem;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.asset-chip__state {
|
||||
@@ -320,6 +323,7 @@
|
||||
.control-panel {
|
||||
position: sticky;
|
||||
top: 65px;
|
||||
min-width: 0;
|
||||
align-self: start;
|
||||
overflow-y: auto;
|
||||
max-height: calc(100vh - 65px);
|
||||
@@ -327,6 +331,15 @@
|
||||
border-left: 1px solid var(--line);
|
||||
background: rgb(12 24 21 / 86%);
|
||||
backdrop-filter: blur(18px);
|
||||
container-name: builder-controls;
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
.builder-layout > .split-handle {
|
||||
position: sticky;
|
||||
top: 59px;
|
||||
height: calc(100vh - 59px);
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.runtime-line {
|
||||
@@ -335,8 +348,10 @@
|
||||
}
|
||||
|
||||
.save-state {
|
||||
min-width: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.7rem;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.control-section,
|
||||
@@ -538,6 +553,10 @@
|
||||
gap: 11px;
|
||||
}
|
||||
|
||||
.validation-card > :last-child {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.validation-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
@@ -550,6 +569,7 @@
|
||||
|
||||
.validation-card strong {
|
||||
font-size: 0.82rem;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.validation-card p {
|
||||
@@ -557,6 +577,7 @@
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
line-height: 1.5;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.validation-card.is-valid .validation-dot {
|
||||
@@ -571,7 +592,11 @@
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.builder-layout {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.builder-layout > .split-handle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.control-panel {
|
||||
@@ -729,7 +754,6 @@
|
||||
}
|
||||
|
||||
.builder-layout {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
|
||||
min-height: calc(100vh - 59px);
|
||||
}
|
||||
|
||||
@@ -871,8 +895,19 @@
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.builder-layout {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.builder-layout > .split-handle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.control-panel {
|
||||
position: static;
|
||||
max-height: none;
|
||||
border-top: 1px solid var(--line);
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1003,3 +1038,50 @@
|
||||
grid-column: 4;
|
||||
}
|
||||
}
|
||||
|
||||
@container builder-controls (max-width: 440px) {
|
||||
.field-grid--three {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.trajectory-row {
|
||||
grid-template-columns: 34px repeat(2, minmax(0, 1fr)) 30px;
|
||||
grid-template-rows: repeat(2, auto);
|
||||
}
|
||||
|
||||
.trajectory-row__select,
|
||||
.trajectory-row__remove {
|
||||
grid-row: 1 / 3;
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
.trajectory-row .field:nth-of-type(1) {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.trajectory-row .field:nth-of-type(2) {
|
||||
grid-column: 3;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.trajectory-row .field:nth-of-type(3) {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.trajectory-row .field:nth-of-type(4) {
|
||||
grid-column: 3;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.trajectory-row__remove {
|
||||
grid-column: 4;
|
||||
}
|
||||
}
|
||||
|
||||
@container builder-controls (max-width: 340px) {
|
||||
.field-grid--three {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user