From e3d5f3df3577f91b933d7ad51a339dbb05ba53dd Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Sat, 5 Sep 2026 17:49:57 +0900 Subject: fix(layout): keep chat transcript region full-height when empty (composer pinned to bottom) --- src/features/layout/ui/TileStack.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/features/layout/ui/TileStack.svelte') diff --git a/src/features/layout/ui/TileStack.svelte b/src/features/layout/ui/TileStack.svelte index 13dab09..ac7091a 100644 --- a/src/features/layout/ui/TileStack.svelte +++ b/src/features/layout/ui/TileStack.svelte @@ -3,6 +3,12 @@ * A plain vertical container (today's left column). `grow` children flex * (`flex: grow 1 0%` — the chat region scrolls internally, exactly like * today's `flex-1`); children without grow take natural height. + * + * `h-full` keeps the container's main size DEFINITE (the parent is the + * split-child wrapper, cross-stretched to the full-height split row). With + * an indefinite height, `flex: 1 1 0%` degenerates to content sizing — an + * EMPTY grow child collapses to ~0 and the siblings below it (composer) + * ride to the top instead of staying pinned at the bottom. */ import type { LayoutOp, Path, StackNode } from "@dispatch/layout-contract"; import type { CollapseStore } from "../logic/collapse"; @@ -23,7 +29,7 @@ } = $props(); -
+
{#each node.children as child, i (i)}
-- cgit v1.2.3