Build chat panes through one content builder

Phase 2.2 of docs/plans/floating-windows.md: buildChatPaneContent wraps a
conversation in the scopes it needs and keys it by the runtime, so the
tiling and (next) a floating window build the same subtree. The tiling uses
it; behaviour is unchanged.
This commit is contained in:
2026-11-10 21:05:41 +00:00
parent 558eedb410
commit 9695100faa
7 changed files with 227 additions and 136 deletions
@@ -142,8 +142,10 @@ class ChatWorkspaceGeometry {
};
if (gap < -slack || gap > chatPaneDividerExtent + slack) continue;
final overlap = horizontal
? math.min(origin.bottom, rect.bottom) - math.max(origin.top, rect.top)
: math.min(origin.right, rect.right) - math.max(origin.left, rect.left);
? math.min(origin.bottom, rect.bottom) -
math.max(origin.top, rect.top)
: math.min(origin.right, rect.right) -
math.max(origin.left, rect.left);
if (overlap <= slack) continue;
final centred = horizontal
? rect.top <= centre && centre < rect.bottom