From 7a1c91c858e93a933bf17ab83ba1dacbb1060542 Mon Sep 17 00:00:00 2001 From: Ryan Hamamura <58859899+ryanhamamura@users.noreply.github.com> Date: Wed, 11 Mar 2026 10:35:29 -1000 Subject: [PATCH] fix: restore flex layout on #game-content wrapper The SSE patching refactor (0808c4d) wrapped game elements in a bare
without propagating the flex classes from
. This broke center-alignment and vertical spacing for both Connect 4 and Snake game pages. --- features/c4game/pages/game.templ | 2 +- features/snakegame/pages/game.templ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/c4game/pages/game.templ b/features/c4game/pages/game.templ index 35d9c84..a08d2b3 100644 --- a/features/c4game/pages/game.templ +++ b/features/c4game/pages/game.templ @@ -24,7 +24,7 @@ templ GamePage(g *connect4.Game, myColor int, messages []chat.Message, chatCfg c } templ GameContent(g *connect4.Game, myColor int, messages []chat.Message, chatCfg chatcomponents.Config) { -
+
@sharedcomponents.LiveClock() @sharedcomponents.BackToLobby() @sharedcomponents.StealthTitle("text-3xl font-bold") diff --git a/features/snakegame/pages/game.templ b/features/snakegame/pages/game.templ index 7ab922a..3d87d1c 100644 --- a/features/snakegame/pages/game.templ +++ b/features/snakegame/pages/game.templ @@ -43,7 +43,7 @@ templ GamePage(sg *snake.SnakeGame, mySlot int, messages []chat.Message, chatCfg } templ GameContent(sg *snake.SnakeGame, mySlot int, messages []chat.Message, chatCfg chatcomponents.Config, gameID string) { -
+
@components.LiveClock() @components.BackToLobby()

~~~~