fix(webchat): make model selector width adaptive to prevent long name… · openclaw/openclaw@512f0f1
maweibin
·
2026-06-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -697,8 +697,9 @@
|
697 | 697 | |
698 | 698 | .chat-composer-model-control { |
699 | 699 | display: inline-flex; |
700 | | -flex: 0 1 220px; |
| 700 | +flex: 0 0 auto; |
701 | 701 | min-width: 0; |
| 702 | +max-width: 70vw; |
702 | 703 | } |
703 | 704 | |
704 | 705 | .chat-composer-model-control .chat-controls__model { |
|
2188 | 2189 | z-index: 80; |
2189 | 2190 | display: grid; |
2190 | 2191 | gap: 2px; |
2191 | | -width: max(100%, min(260px, calc(100vw - 32px))); |
| 2192 | +width: max(300%, min(300px, calc(100vw - 32px))); |
2192 | 2193 | max-height: min(280px, calc(100vh - 120px)); |
2193 | 2194 | padding: 6px; |
2194 | 2195 | border: 1px solid color-mix(in srgb, var(--border) 82%, transparent); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。