Skip to content

fix(monitoramento): map X-overflow on mobile #30

Description

@luandro

Context

QA on the dev server (branch ux/15-eventos, commit dc2a833) at <1024px viewport width: the Monitoramento map panel renders wider than the viewport, triggering horizontal scroll on the page.

Repro

  1. Open http://127.0.0.1:8081, log in
  2. Resize browser to 800×600 (or DevTools device emulation <1024px)
  3. Click Monitoramento tab
  4. Page scrolls horizontally — the map panel extends past the right edge

Root cause

is a CSS Grid ( on mobile). Grid children default to (= intrinsic content size), so the wide SVG inside pushes the column wider than the viewport. The wrapper can't help because the grid itself expands before the panel can clip.

Confirmed via:

  • components.css:644-647: — no on children
  • components.css:656-663:

Suggested fix

.monitoramento-grid > * { min-width: 0; }
.monitoramento-map { overflow-x: hidden; }
.monitoramento-map svg { max-width: 100%; height: auto; display: block; }

The is the canonical CSS Grid fix for children that overflow their column. The other two are belt-and-braces against future SVG changes.

Out of scope

PR #29 (the 5 review NITs) does not include this. Will be a separate lane.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions