From 3ef9f48df059a0a291ccf904f9b55e1ed2b7a0f6 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Mon, 21 Sep 2026 15:42:14 +0700 Subject: [PATCH] fix(web): open the in-room rules link in a new tab The board and lobby screens resign or leave the room when they unmount, so an in-page navigation to the rules forfeited the game being played. --- web/src/lib/components/GameBoard.svelte | 4 +++- web/src/lib/components/Lobby.svelte | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/web/src/lib/components/GameBoard.svelte b/web/src/lib/components/GameBoard.svelte index 60c5b5e..9e7fae9 100644 --- a/web/src/lib/components/GameBoard.svelte +++ b/web/src/lib/components/GameBoard.svelte @@ -130,7 +130,9 @@
{#if modeLabel}{modeLabel}{/if} - {t.rulesLink} + + {t.rulesLink} {#if onchatopen} + {t.rulesLink}
{:else}