From 222f32d98f5e492f0091b108d65fdd6d780a7c9f Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Fri, 10 Apr 2026 12:13:03 +0200 Subject: [PATCH] Improve panel layout overflow on small screens - Prevent horizontal overflow in the main layout - Stack game room controls vertically on narrow viewports - Truncate long room and user labels to keep cards stable --- panel/src/components/Layout.tsx | 6 +++--- panel/src/games/GameRoom.tsx | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/panel/src/components/Layout.tsx b/panel/src/components/Layout.tsx index 73c8504..7db54aa 100644 --- a/panel/src/components/Layout.tsx +++ b/panel/src/components/Layout.tsx @@ -221,7 +221,7 @@ export default function Layout({ } return ( -
+
{/* Mobile header bar */}
@@ -260,7 +260,7 @@ export function GameRoom({ userId, role }: { userId: string; role?: string }) { return (
-
+
-
+
@@ -339,7 +339,7 @@ export function GameRoom({ userId, role }: { userId: string; role?: string }) { {hostPlayer && (
Host - {hostPlayer.username} + {hostPlayer.username}
)}
@@ -347,13 +347,13 @@ export function GameRoom({ userId, role }: { userId: string; role?: string }) {
{sessionReplaced && ( -
+
Another tab claimed this room session. Actions from this tab are currently disabled.
@@ -389,7 +389,7 @@ export function GameRoom({ userId, role }: { userId: string; role?: string }) { {roomStatus === "waiting" && (
-
+
Waiting Room

@@ -461,9 +461,9 @@ export function GameRoom({ userId, role }: { userId: string; role?: string }) {
Room Settings
{roomFacts.map(fact => ( -
+
{fact.label} - {fact.value} + {fact.value}
))}
@@ -505,7 +505,7 @@ export function GameRoom({ userId, role }: { userId: string; role?: string }) {
{spectators.map(spectator => (
- {spectator.username} + {spectator.username} Watching
))}