From 62847473392d22253ae1b34847ba43fb462269df Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Thu, 6 Aug 2026 19:14:31 +0200 Subject: [PATCH] [fix](trx-frontend-http): let the bottom nav's labels fit inside its tabs The bottom nav keeps its labels under the icons -- that is what makes it navigation rather than five glyphs -- but the labels did not fit the tabs. On a 360 px screen "Bookmarks" and "Digital modes" were cut off mid-word and ran into each other: "Bookmarks igital mode". The stylesheet already meant to handle it. Three rules shrink the long labels, and a rule twenty lines further down sets the size for all of them; identical specificity, later in the file, so the blanket rule won and nothing was ever shortened. Those rules now come after it. Beyond that, tabs sized themselves to their own labels, so "Map" and "Digital modes" were given the same room. They divide the bar evenly now, which is the shape of every bottom nav, and a label that still runs long ellipsises rather than being cut through a letter. "Digital modes" does not fit at any size worth reading, so the nav shows "Digital" and the button carries the full name as its accessible label; the short form is hidden from assistive tech, which reads the button's name instead. The phone layout test now checks that no label in the nav is cut off at 430, 390 or 360 px, and that the shortened tab still says what it is to something that reads the page rather than looks at it. Signed-off-by: Stan Grams --- .../trx-frontend-http/assets/web/index.html | 5 ++- .../trx-frontend-http/assets/web/style.css | 43 ++++++++++++++++--- .../frontend/tests/mobile-layout.mjs | 34 +++++++++++++++ 3 files changed, 76 insertions(+), 6 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html index 1f69e61d..45bc6bc1 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html @@ -52,9 +52,12 @@ SPDX-License-Identifier: GPL-2.0-or-later Bookmarks -