fix(chat): collapse model controls to icon-only on narrow widths

Bump @container/model-controls thresholds so labels disappear before
they would ellipsis-truncate. Hide order: agent (< 22rem), variant
(< 14rem), model (< 10rem). VS Code keeps its tighter thresholds.
This commit is contained in:
Bohdan Triapitsyn
2026-05-08 19:41:03 +03:00
parent 1a0f3bea8e
commit 2459ce13ff
+30 -14
View File
@@ -711,26 +711,42 @@ html:not(.dark) .chat-scroll {
font-size: inherit !important;
}
/* Model/agent controls: agent label hides before model label. */
/* Model/agent controls: progressively collapse labels to icon-only as the row narrows.
Hide priority (most aggressive first → most resilient last): agent, variant, model. */
/* Desktop (non-VSCode): pick thresholds that fire BEFORE the per-label `max-w-[Xpx]`
constraints would truncate text with an ellipsis. */
@container model-controls (max-width: 22rem) {
:root:not(.vscode-runtime) .model-controls__agent-label {
display: none;
}
}
@container model-controls (max-width: 14rem) {
:root:not(.vscode-runtime) .model-controls__variant-label {
display: none;
}
}
@container model-controls (max-width: 10rem) {
:root:not(.vscode-runtime) .model-controls__model-label {
display: none;
}
}
/* VS Code side panel: tighter thresholds since the panel is narrow and labels are smaller. */
@container model-controls (max-width: 11rem) {
.model-controls__agent-label {
display: none;
}
}
@container model-controls (max-width: 9rem) {
.model-controls__model-label {
display: none;
}
}
/* VS Code side panel: collapse earlier to save horizontal space. */
@container model-controls (max-width: 9rem) {
:root.vscode-runtime .model-controls__agent-label {
display: none;
}
}
@container model-controls (max-width: 9rem) {
:root.vscode-runtime .model-controls__variant-label {
display: none;
}
}
@container model-controls (max-width: 10rem) {
:root.vscode-runtime .model-controls__model-label {
display: none;