Skip to content

Commit fe76961

Browse files
fix(web): port #11594 to V2 — the chat width setting widens V2's chat lane
Main's chat width setting sets --chat-max-width, which main's timeline and composer read. V2 sizes the same surfaces (chat-content-lane, the composer, and ChatCanvas's width probe that drives the preview layout) with --chat-content-max-width, so after the merge the setting was saved but changed nothing. Wide and Full now override V2's token; Comfortable keeps V2's default (46rem, close to main's 48rem). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 2b9af8f commit fe76961

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎apps/web/src/index.css‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,17 +2019,14 @@ code {
20192019
--diff-deletion-foreground: light-dark(var(--color-red-600), var(--color-red-400));
20202020
}
20212021

2022-
/* Chat timeline and composer column width, set from the Chat width setting. */
2023-
:root {
2024-
--chat-max-width: 48rem;
2025-
}
2026-
2022+
/* Chat width setting. Comfortable keeps the default --chat-content-max-width,
2023+
which sizes the timeline lane, the composer, and ChatCanvas's width probe. */
20272024
:root[data-chat-width="wide"] {
2028-
--chat-max-width: 72rem;
2025+
--chat-content-max-width: 72rem;
20292026
}
20302027

20312028
:root[data-chat-width="full"] {
2032-
--chat-max-width: 100%;
2029+
--chat-content-max-width: 100%;
20332030
}
20342031

20352032
:root[data-diff-color-scheme="blue-orange"] {

0 commit comments

Comments
 (0)