From e1cc8105dba020f8d40c72793e72d334a5a2497d Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Sun, 6 Sep 2026 23:09:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(frontend)=20position=20the=20login?= =?UTF-8?q?=20hint=20dynamically=20next=20to=20the=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compute the position of the login hint at render time so it is always displayed close to the login button, regardless of the button's placement or the current viewport size. --- CHANGELOG.md | 1 + src/frontend/src/layout/Header.tsx | 22 +++++++--------------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 319b8b18..57251e42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ and this project adheres to - ⚡️(frontend) add trailing slash on the /me endpoint call - ⚡️(backend) refactor lobby storage to bound key lookups per room - ⚡️(backend) refactor presence cache to bound key lookups per room +- 💄(frontend) position the login hint dynamically next to the button ## [1.30.0] - 2026-09-01 diff --git a/src/frontend/src/layout/Header.tsx b/src/frontend/src/layout/Header.tsx index 362d4a1a..76fe4e3e 100644 --- a/src/frontend/src/layout/Header.tsx +++ b/src/frontend/src/layout/Header.tsx @@ -35,30 +35,21 @@ const LoginHint = () => {
{ <>
+
- )} {!!user && (