Multiplayer agent harness for work.
web-ui: size chat gutters by the surface's own width, not the window (#424)
Regan Bell6580ef1aa23e
diff --git a/plugins/web-ui/src/shell.css b/plugins/web-ui/src/shell.cssindex 6da054eac..5dab53e19 100644--- a/plugins/web-ui/src/shell.css+++ b/plugins/web-ui/src/shell.css@@ -977,6 +977,10 @@ a.chat-row-open {flex: 1;min-height: 0;display: flex;+ /* Chat layout (gutters, content width) is driven by this surface's own width via+ container queries below, so a pane in the split canvas lays out by its pane size,+ not by whatever the window happens to be. */+ container: chat / inline-size;}.custom-chat-shell {flex: 1;@@ -4259,10 +4263,6 @@ a.chat-row-open {}@media (max-width: 860px) {- :root {- --chat-pad: 14px;- --content-w: 100%;- }.layout {position: relative;}@@ -4358,24 +4358,12 @@ a.chat-row-open {.message-bubble {max-width: 88%;}- .composer-wrap {- width: auto;- margin-right: calc(10px + env(safe-area-inset-right));- margin-bottom: calc(10px + env(safe-area-inset-bottom));- margin-left: calc(10px + env(safe-area-inset-left));- border-radius: 18px;- }.composer-approval {grid-template-columns: 1fr;}.composer-approval .approval-actions {justify-content: flex-start;}- .live-work-dock {- width: auto;- margin-right: calc(10px + env(safe-area-inset-right));- margin-left: calc(10px + env(safe-area-inset-left));- }.composer-toolbar {align-items: flex-end;}@@ -6941,7 +6929,7 @@ h3.ambient-field-label {}[data-density="compact"] .chat-scroll {- padding: 14px 14px 4px;+ padding: 14px var(--chat-pad) 4px;}[data-density="compact"] .message-row {--meta-lane: 16px;@@ -6953,6 +6941,33 @@ h3.ambient-field-label {[data-density="compact"] .live-work-detail {display: none;}++/* The chat's column width and gutters follow the surface's own width (window or pane),+ never the window's size — resizing the window must not flip a pane's alignment. */+@container chat (max-width: 860px) {+ .custom-chat-shell {+ --content-w: 100%;+ }+}+@container chat (max-width: 470px) {+ .custom-chat-shell {+ --chat-pad: 14px;+ }+ /* The floating composer/dock margins pair with the full-bleed 14px chat pad and must+ follow the surface's width too, or a window resize misaligns them with the column. */+ .composer-wrap {+ width: auto;+ margin-right: calc(10px + env(safe-area-inset-right));+ margin-bottom: calc(10px + env(safe-area-inset-bottom));+ margin-left: calc(10px + env(safe-area-inset-left));+ border-radius: 18px;+ }+ .live-work-dock {+ width: auto;+ margin-right: calc(10px + env(safe-area-inset-right));+ margin-left: calc(10px + env(safe-area-inset-left));+ }+}[data-density="card"] .context-banner,[data-density="strip"] .context-banner,[data-density="card"] .live-work-dock,