From f49b906519228464e5cded8aa663295158ef0de1 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Wed, 9 Sep 2026 00:36:04 +0700 Subject: [PATCH] fix(web): keep the whole board on screen as the chain grows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Giving up was a button under the chain, and the chain is the one part of the board with no ceiling: the longer a game ran, the further off the bottom of the screen it went — worst exactly when a player wants it. It sits above the list now, on the right, away from the field a player is typing into, in the danger colour and at a full 44px. The chain takes the height that is left and scrolls inside itself, so the syllable, the clock and the word field stay where they are however long it gets. The error banner's dismiss cross gets the same 44px, negative-margined back out so the banner keeps its height. --- web/src/lib/components/ChainHistory.svelte | 4 ++++ web/src/lib/components/GameBoard.svelte | 28 ++++++++++++++++++---- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/web/src/lib/components/ChainHistory.svelte b/web/src/lib/components/ChainHistory.svelte index 41be184..617e2df 100644 --- a/web/src/lib/components/ChainHistory.svelte +++ b/web/src/lib/components/ChainHistory.svelte @@ -85,8 +85,12 @@