From 2a14924ed9ba1b2caa2858ddfa10be05243cebd9 Mon Sep 17 00:00:00 2001 From: Lucas Rayan Date: Sun, 15 Nov 2026 10:36:41 -0300 Subject: [PATCH] fix: 1.5.6 mobile horizontal overflow from sr-only chart table Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 6 ++++++ CHANGELOG.pt-BR.md | 6 ++++++ internal/app/version.go | 2 +- internal/server/web/style.css | 3 +++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52c5938..c7006a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow SemVer. +## [1.5.6] - 2026-11-15 + +### Fixed + +- Phones: the hidden accessible data table of the charts (`table.sr-only`, ~1300 px wide because tables ignore `width: 1px`) widened the mobile layout viewport on the egress page, dragging the fixed bottom menu sideways. The table is now fixed-layout at 1 px, and `html`/`body` use `overflow-x: clip` so nothing can widen the page again. + ## [1.5.5] - 2026-11-15 ### Fixed diff --git a/CHANGELOG.pt-BR.md b/CHANGELOG.pt-BR.md index 7569963..9cb7b3a 100644 --- a/CHANGELOG.pt-BR.md +++ b/CHANGELOG.pt-BR.md @@ -4,6 +4,12 @@ Formato baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.1.0/); versionamento segue SemVer. +## [1.5.6] - 2026-11-15 + +### Corrigido + +- Celular: a tabela acessível oculta dos gráficos (`table.sr-only`, ~1300 px porque tabelas ignoram `width: 1px`) alargava o layout na página de tráfego de saída e arrastava o menu inferior fixo para o lado. A tabela agora tem layout fixo de 1 px, e `html`/`body` usam `overflow-x: clip`, para nada mais alargar a página. + ## [1.5.5] - 2026-11-15 ### Corrigido diff --git a/internal/app/version.go b/internal/app/version.go index db956f4..7d737a3 100644 --- a/internal/app/version.go +++ b/internal/app/version.go @@ -2,4 +2,4 @@ package app // Version is the release version (SemVer). Release builds may override it with // -ldflags "-X .../internal/app.Version=...". -var Version = "1.5.5" +var Version = "1.5.6" diff --git a/internal/server/web/style.css b/internal/server/web/style.css index 8b56a59..a5dfd75 100644 --- a/internal/server/web/style.css +++ b/internal/server/web/style.css @@ -604,6 +604,9 @@ input[type="datetime-local"] { background: var(--surface-raised); border: 1px so /* ================================================================ charts and help */ .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; } +table.sr-only { table-layout: fixed; max-width: 1px; } +/* clip, not hidden: nothing may widen the mobile layout viewport (it drags the fixed tabbar along); sticky still works */ +html, body { overflow-x: clip; } .vz { min-width: 0; } .vz-donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); } .vz-donut-svg { flex: 0 1 190px; min-width: 140px; }