diff --git a/docs/ui/workbench-redesign-v1.html b/docs/ui/workbench-redesign-v1.html index 41f55af..387f9f7 100644 --- a/docs/ui/workbench-redesign-v1.html +++ b/docs/ui/workbench-redesign-v1.html @@ -517,6 +517,42 @@ .form-section { padding: var(--space-4); border-bottom: 1px solid var(--stroke-divider); } .form-section:last-child { border-bottom: 0; } .form-section h2 { margin: 0 0 var(--space-3); font-size: 13px; font-weight: 600; } + .section-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-3); } + .section-head h2 { margin: 0; } + .section-head .push { margin-left: auto; } + + /* ---- 分段选择器:表达“当前来源”这一状态,不是动作按钮 ---- + Qt 端对应 QButtonGroup(setExclusive) + setCheckable 的两个按钮, + 或两个 QRadioButton;不得退化为普通 QPushButton。 */ + .segmented { display: inline-flex; border: 1px solid var(--stroke-control); border-radius: var(--radius-control); overflow: hidden; } + .segmented label { + display: flex; align-items: center; + min-height: 32px; padding: 0 var(--space-3); + border-right: 1px solid var(--stroke-control); + color: var(--text-primary); font-size: 13px; cursor: pointer; + transition: background var(--motion-fast) var(--ease); + } + .segmented label:last-of-type { border-right: 0; } + .segmented label:hover { background: var(--surface-hover); } + .segmented label.is-checked { background: var(--accent-default); color: #fff; font-weight: 600; } + .segmented label.is-focused { outline: 2px solid var(--focus-stroke); outline-offset: -2px; } + .segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; } + + .gateway-panel[hidden] { display: none; } + .gateway-note { margin: 0 0 var(--space-3); } + + .model-layout { display: grid; grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr); gap: var(--space-3); align-items: start; } + .model-list { max-height: 232px; overflow: auto; padding: var(--space-1); border: 1px solid var(--stroke-control); border-radius: var(--radius-control); background: var(--surface-layer); } + .model-item { + display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-2); + width: 100%; min-height: 40px; padding: var(--space-1) var(--space-2); + border: 0; border-radius: var(--radius-control); background: transparent; text-align: left; + } + .model-item[aria-current="true"] { background: var(--accent-subtle); box-shadow: inset 3px 0 0 var(--accent-default); } + .model-item .name { display: block; font-size: 13px; font-weight: 600; } + .model-item .meta { display: block; overflow: hidden; color: var(--text-secondary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; } + .test-result { display: inline-flex; align-items: center; font-size: 12px; color: var(--text-secondary); } + @media (max-width: 1000px) { .model-layout { grid-template-columns: minmax(0, 1fr); } .model-list { max-height: 160px; } } .form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); } .form-grid .span-2 { grid-column: span 2; } .form-grid .span-3 { grid-column: 1 / -1; } @@ -654,7 +690,7 @@ 蝦皮圈優化助手 - cmhub 已连接 + 默认网关 已连接