From 03dfea3aac35a1904f71b4d612a5849bac1d6d15 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 be792c24..ee5f2acb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,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 && (