style: 对齐拆解设置控件并修复单位换行
This commit is contained in:
@@ -343,6 +343,86 @@ body {
|
||||
.control-row-checkbox .n-checkbox-box-wrapper {
|
||||
align-self: center;
|
||||
}
|
||||
/* 拆解配置跟随抽屉实际宽度;标题 20px + 间距 8px,下方统一使用 34px 控件行。 */
|
||||
.breakdown-settings-panel {
|
||||
container: breakdown-settings / inline-size;
|
||||
}
|
||||
.breakdown-config {
|
||||
--breakdown-label-offset: 28px;
|
||||
display: grid;
|
||||
grid-template-columns: 180px minmax(0, 1fr) auto;
|
||||
align-items: start;
|
||||
gap: 16px 24px;
|
||||
}
|
||||
.breakdown-config .field-label {
|
||||
margin: 0 0 8px;
|
||||
padding: 0;
|
||||
line-height: 20px;
|
||||
}
|
||||
.breakdown-group-field,
|
||||
.breakdown-modules-field,
|
||||
.breakdown-module-option {
|
||||
min-width: 0;
|
||||
}
|
||||
.breakdown-group-input {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
.breakdown-group-number.n-input-number {
|
||||
flex: 0 0 120px;
|
||||
width: 120px;
|
||||
}
|
||||
.breakdown-group-unit {
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
color: var(--app-muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
.breakdown-modules-field {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
.breakdown-module-options {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 12px 16px;
|
||||
}
|
||||
.breakdown-module-description {
|
||||
margin: 4px 0 0;
|
||||
padding-left: 24px;
|
||||
color: var(--app-muted);
|
||||
font-size: 11px;
|
||||
line-height: 18px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.breakdown-preview-button.n-button {
|
||||
align-self: start;
|
||||
margin-top: var(--breakdown-label-offset);
|
||||
white-space: nowrap;
|
||||
}
|
||||
@container breakdown-settings (max-width: 780px) {
|
||||
.breakdown-config {
|
||||
grid-template-columns: 180px minmax(0, 1fr);
|
||||
}
|
||||
.breakdown-preview-button.n-button {
|
||||
grid-column: 2;
|
||||
justify-self: end;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
@container breakdown-settings (max-width: 560px) {
|
||||
.breakdown-config {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
.breakdown-module-options {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
|
||||
}
|
||||
.breakdown-preview-button.n-button {
|
||||
grid-column: 1;
|
||||
}
|
||||
}
|
||||
.workspace-tools-body .storyboard-coverage {
|
||||
margin-block: 20px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user