fix(experience-center): 统一图像与视频生成界面并修复参数显示
对齐表单、预览与任务区,跟随系统主题色,修复图片尺寸选择和视频高级参数显示。已通过本地浏览器验收、Lint、UI 审计和单测;未做生产测试。
This commit is contained in:
@@ -0,0 +1,211 @@
|
||||
.video-workspace {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
height: 100%;
|
||||
padding: 24px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.video-workspace-heading,
|
||||
.video-panel-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.video-workspace-icon,
|
||||
.video-preview-empty-icon {
|
||||
display: grid;
|
||||
flex: none;
|
||||
place-items: center;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
color: var(--brand-selection-text);
|
||||
background: var(--brand-selection-bg);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.video-workspace-heading h1 {
|
||||
margin: 0;
|
||||
color: var(--text-primary);
|
||||
font-size: 28px;
|
||||
font-weight: 650;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.video-workspace-heading p {
|
||||
margin: 4px 0 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.video-workspace-body {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.video-workspace-grid {
|
||||
display: grid;
|
||||
flex: 1;
|
||||
grid-template-columns: clamp(312px, 26%, 420px) minmax(0, 1fr);
|
||||
gap: 16px;
|
||||
min-height: 310px;
|
||||
}
|
||||
|
||||
.video-workspace-composer {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.video-panel-header {
|
||||
display: flex;
|
||||
flex: none;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
min-height: 57px;
|
||||
padding: 10px 16px;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.video-panel-header:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.video-panel-heading {
|
||||
gap: 8px;
|
||||
color: var(--brand-accent);
|
||||
}
|
||||
|
||||
.video-panel-heading h2 {
|
||||
margin: 0;
|
||||
color: var(--text-primary);
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.video-queue {
|
||||
flex: none;
|
||||
min-width: 0;
|
||||
background: var(--surface-card);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.video-queue-heading {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.video-queue-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
min-height: 52px;
|
||||
padding: 8px 16px;
|
||||
border: 0;
|
||||
border-radius: 11px;
|
||||
background: transparent;
|
||||
color: var(--text-primary);
|
||||
text-align: start;
|
||||
font: inherit;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.video-queue-toggle > svg:first-child {
|
||||
color: var(--brand-accent);
|
||||
}
|
||||
|
||||
.video-queue-toggle:hover {
|
||||
background: var(--surface-bg-base);
|
||||
}
|
||||
|
||||
.video-queue-toggle:focus-visible {
|
||||
outline: 2px solid var(--brand-accent);
|
||||
outline-offset: -3px;
|
||||
}
|
||||
|
||||
.video-queue-toggle[aria-expanded='true'] {
|
||||
border-end-start-radius: 0;
|
||||
border-end-end-radius: 0;
|
||||
}
|
||||
|
||||
.video-queue-count {
|
||||
min-width: 23px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 6px;
|
||||
background: var(--surface-bg-base);
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.video-queue-chevron {
|
||||
margin-inline-start: auto;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.video-queue-toggle[aria-expanded='true'] .video-queue-chevron {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.video-queue-content {
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.video-queue-toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px 16px;
|
||||
padding: 10px 16px;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.video-queue-table {
|
||||
min-width: 0;
|
||||
max-height: clamp(120px, 24dvh, 260px);
|
||||
overflow: auto;
|
||||
border-end-start-radius: 11px;
|
||||
border-end-end-radius: 11px;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.video-workspace {
|
||||
gap: 16px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.video-workspace-body {
|
||||
flex: none;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.video-workspace-grid {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.video-workspace-heading h1 {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.video-queue-table {
|
||||
max-height: 320px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user