Navbar runs off the page between ~992 and ~1,090 px when signed in

Aperta
#2,714 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
bootstrap, css
Ambito
frontend

Direzione di ricerca

The overflow comes from the user menu inside #navbarSupportedContent (ul.navbar-nav.user-menu, #navbarDropdownUser) at the Bootstrap lg breakpoint. Start by reproducing at 1024 px with a 30-character username, then run benchmarks/tables_tab/widths.mjs to see pageOverflow. Read login/static/login/datasets_tab.css for the earlier note. The maintainers have not chosen between a wider collapse breakpoint and name truncation, so confirm the direction first. Done means no horizontal scroll at 992-1,280 px and benchmarks/homepage/compare.mjs unchanged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

design/layout

What happens

On a signed-in page at a viewport just above Bootstrap's lg breakpoint (992 px), the expanded navbar is wider than the window, and the page scrolls sideways. The part that runs off is the end of #navbarSupportedContent, which holds the user menu (ul.navbar-nav.user-menu → #navbarDropdownUser).

Measured

Headless Chrome 152 at a 1024 px viewport, signed in, on the dashboard's Tables and Datasets tabs (2026-10-13, develop with #2707):

account name scrollWidth overflow
bench_p90 1,072 48 px
bench_ds_six 1,089 65 px
  • The overflow grows with the username, so a longer name runs further off.
  • The size of a page's own content made no difference: other measurements on the same tabs reported 52 and 80 px.
  • Only 1024 px was measured. At 1280 px and above, and below 992 px (where the menu collapses), nothing overflowed on these pages. So the affected range is roughly from 992 px up to about 1,090 px; the upper end depends on the name.
  • The navbar is in every shell, so this should hold for any signed-in page. Only the two dashboard tabs were measured.

Not new

login/static/login/datasets_tab.css (#2622) already noted it at 1024 px "by the site header's user name and Sign Out, on every profile tab alike", before the user menu (#2707) replaced those. The overflow was the same before and after #2711, and it is what benchmarks/tables_tab/widths.mjs reports as pageOverflow at 1024.

Likely directions (not decided)

  • Collapse the navbar at a wider breakpoint (navbar-expand-xl).
  • Or let the user menu's name truncate with an ellipsis, so the bar fits from 992 px.

The first changes when the collapsed menu shows; the second keeps the bar one row but hides part of long names.

Acceptance

  • No horizontal page scroll at 992-1,280 px on a signed-in page, with a long username (e.g. 30 characters).
  • The homepage comparison (benchmarks/homepage/compare.mjs) is unchanged, or any change is accepted explicitly.
Lingua principale
Python
Stelle
65
Fork
28
Merge medio
4g 7h
PR unite (30g)
25

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenEnergyPlatform/oeplatform

Tutte le issue di OpenEnergyPlatform/oeplatform

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.