From 5e2d0bc673b7ac2cebc3bb9f3b9b30cbc19eba7f Mon Sep 17 00:00:00 2001 From: srdusr <99972264+srdusr@users.noreply.github.com> Date: Mon, 22 Dec 2025 14:09:00 +0200 Subject: Fix the room code field and give the multiplayer screen a close control - The room code field was a 94px box with a clipped placeholder: twice the height of the name field above it, and the largest control on the screen for the smallest input on it. align-items: stretch was inflating it from a natural 46px, and the field was sized to whatever width was going rather than to the five characters a code actually is. It is now 9ch wide and matches the height of the Join button beside it, which is sized to match it in turn rather than being a full-size action. - The multiplayer screen was the only one reachable from the rails without a close control. Both of its views have one now. --- web/src/screens/multiplayerScreen.js | 5 ++++- web/src/styles.css | 31 ++++++++++++++++++++++--------- 2 files changed, 26 insertions(+), 10 deletions(-) (limited to 'web') diff --git a/web/src/screens/multiplayerScreen.js b/web/src/screens/multiplayerScreen.js index 073d3cc..7292bcc 100644 --- a/web/src/screens/multiplayerScreen.js +++ b/web/src/screens/multiplayerScreen.js @@ -1,4 +1,5 @@ import { escapeHtml } from '../util.js'; +import { CLOSE_ICON } from './icons.js'; import { renderCornerRail } from '../cornerRail.js'; import { attachTooltips } from '../tooltip.js'; import { renderTopRail } from '../topRail.js'; @@ -70,6 +71,7 @@ export function renderMultiplayerScreen(root, { onBack, onFinish, onShowStats, o let deviceFilter = 'everyone'; root.innerHTML = `