fix(experience-center): 统一图像与视频生成界面并修复参数显示
对齐表单、预览与任务区,跟随系统主题色,修复图片尺寸选择和视频高级参数显示。已通过本地浏览器验收、Lint、UI 审计和单测;未做生产测试。
This commit is contained in:
@@ -7,12 +7,20 @@
|
||||
--igf-muted: var(--text-secondary);
|
||||
--igf-line: var(--border-subtle);
|
||||
--igf-surface: var(--surface-card);
|
||||
--igf-accent: var(--ui-color-primary);
|
||||
--igf-accent: var(--brand-accent);
|
||||
--igf-fill: color-mix(in srgb, var(--text-primary) 4%, var(--surface-card));
|
||||
--igf-danger: var(--ui-color-danger);
|
||||
--igf-warning: var(--ui-color-warning);
|
||||
--igf-ring: color-mix(in srgb, var(--ui-color-primary) 55%, transparent);
|
||||
--igf-ring: var(--brand-accent);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--igf-line);
|
||||
border-radius: 12px;
|
||||
background: var(--igf-surface);
|
||||
color: var(--igf-ink);
|
||||
}
|
||||
|
||||
.igf-form-scroll {
|
||||
@@ -20,7 +28,182 @@
|
||||
min-height: 0;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
padding: 16px;
|
||||
padding: 14px 16px 16px;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.igf-form-scroll[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.igf-header {
|
||||
display: flex;
|
||||
flex: none;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 15px 16px;
|
||||
border-bottom: 1px solid var(--igf-line);
|
||||
}
|
||||
|
||||
.igf-header-icon {
|
||||
display: grid;
|
||||
flex: none;
|
||||
place-items: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
background: var(--brand-selection-bg);
|
||||
color: var(--brand-selection-text);
|
||||
}
|
||||
|
||||
.igf-header-copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.igf-header-actions {
|
||||
display: flex;
|
||||
flex: none;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.igf-title {
|
||||
margin: 0;
|
||||
font-size: 21px;
|
||||
font-weight: 650;
|
||||
line-height: 27px;
|
||||
}
|
||||
|
||||
.igf-description {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
color: var(--igf-muted);
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.igf-section + .igf-section {
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.igf-field-heading {
|
||||
margin: 0 0 8px;
|
||||
font-size: 13px;
|
||||
font-weight: 650;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.igf-configuration,
|
||||
.igf-parameters {
|
||||
padding: 12px;
|
||||
border: 1px solid var(--igf-line);
|
||||
border-radius: 10px;
|
||||
background: var(--igf-fill);
|
||||
}
|
||||
|
||||
.igf-mode-field {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.igf-mode-group.cp-option-group {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
gap: 3px;
|
||||
background: var(--igf-surface);
|
||||
}
|
||||
|
||||
.igf-mode-group .cp-option {
|
||||
flex: 1 1 auto;
|
||||
padding-inline: 6px;
|
||||
}
|
||||
|
||||
.igf-mode-group .cp-option.is-selected {
|
||||
border-color: var(--igf-accent);
|
||||
background: var(--brand-selection-bg);
|
||||
color: var(--brand-selection-text);
|
||||
}
|
||||
|
||||
.igf-editor {
|
||||
border: 1px solid var(--igf-line);
|
||||
border-radius: 10px;
|
||||
background: var(--igf-fill);
|
||||
}
|
||||
|
||||
.igf-editor:focus-within {
|
||||
border-color: var(--igf-accent);
|
||||
}
|
||||
|
||||
.igf-editor textarea.ant-input {
|
||||
min-height: 78px;
|
||||
padding: 9px 10px;
|
||||
resize: vertical;
|
||||
font-size: 13px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.igf-editor-toolbar,
|
||||
.igf-editor-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.igf-editor-toolbar {
|
||||
justify-content: space-between;
|
||||
padding: 4px 6px;
|
||||
border-top: 1px solid var(--igf-line);
|
||||
}
|
||||
|
||||
.igf-editor-actions .ant-btn {
|
||||
padding-inline: 7px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.igf-shortcut {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 1px 5px;
|
||||
border: 1px solid var(--igf-line);
|
||||
border-radius: 5px;
|
||||
color: var(--igf-muted);
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.igf-history-item {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
max-width: min(280px, 70vw);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.igf-templates {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.igf-templates .ant-btn {
|
||||
flex: 1 1 27%;
|
||||
min-height: 28px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.igf-templates-label {
|
||||
flex-basis: 100%;
|
||||
color: var(--igf-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.igf-generate .igf-submit.ant-btn {
|
||||
height: 42px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Keep disabled generation actions grounded in the same surface and border token. */
|
||||
@@ -139,13 +322,36 @@
|
||||
}
|
||||
|
||||
.igf-slots {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.igf-slots .cp-slot {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 1;
|
||||
border-radius: 9px;
|
||||
}
|
||||
|
||||
.igf-reference-hint {
|
||||
margin: 6px 0 0;
|
||||
}
|
||||
|
||||
.igf-size .cp-option-group--ratio {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 78px), 1fr));
|
||||
}
|
||||
|
||||
.igf-size .cp-option-group--ratio .cp-option {
|
||||
min-width: 64px;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
padding: 6px 4px;
|
||||
}
|
||||
|
||||
.igf-size .cp-option-group--ratio .cp-option-label {
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.igf-size-dims {
|
||||
@@ -175,6 +381,35 @@
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.igf-advanced-trigger {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
min-height: 34px;
|
||||
padding: 6px 10px;
|
||||
border: 1px solid var(--igf-line);
|
||||
border-radius: 8px;
|
||||
color: var(--igf-muted);
|
||||
font-size: 13px;
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
.igf-advanced-trigger span {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.igf-advanced-trigger:hover,
|
||||
.igf-advanced-trigger[aria-expanded='true'] {
|
||||
border-color: var(--igf-accent);
|
||||
background: var(--brand-selection-bg);
|
||||
color: var(--brand-selection-text);
|
||||
}
|
||||
|
||||
.igf-advanced-content {
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.igf-generate {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -183,11 +418,20 @@
|
||||
|
||||
.igf-generate-wrap {
|
||||
flex: 0 0 auto;
|
||||
padding: 16px 16px max(16px, env(safe-area-inset-bottom));
|
||||
padding: 12px 16px max(12px, env(safe-area-inset-bottom));
|
||||
border-top: 1px solid var(--igf-line);
|
||||
background: var(--igf-surface);
|
||||
}
|
||||
|
||||
.igf-collapsed-summary {
|
||||
overflow: hidden;
|
||||
margin: 0 0 8px;
|
||||
color: var(--igf-muted);
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.igf-quote {
|
||||
min-height: 18px;
|
||||
color: var(--igf-muted);
|
||||
|
||||
Reference in New Issue
Block a user