feat: make app workspaces resizable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user