feat(agents): add "Fit conversation to the window width" chat setting (#3455)

Settings › Agents › Chat › Conversation gets an opt-in toggle (agents.fitWindowWidth, off by default). When on, the conversation stream, composer, question card, user message bubbles and the New Task page drop their max-width caps and follow the pane width; when off, the readable 900 px column stays.

Co-authored-by: dengliu <5108773+dengliu@users.noreply.github.com>
This commit is contained in:
Deng Liu
2026-11-15 09:50:13 +08:00
committed by GitHub
co-authored by dengliu
parent 59fba1a65d
commit 8432bf9997
15 changed files with 186 additions and 4 deletions
+13
View File
@@ -66,6 +66,19 @@
.withChanges {
grid-template-columns: minmax(min(240px, 50%), 1fr) minmax(0, var(--agent-changes-width, 280px));
}
.fitWidth .stream > * {
width: 100%;
}
.fitWidth .userMessage > .user {
max-width: var(--session-card-width);
}
.fitWidth .composerArea {
max-width: none;
}
.fitWidth .questionCard {
width: calc(100% - var(--space-3) * 2);
max-width: none;
}
.providerIcon {
color: var(--fg-muted);