Skip to content

fix(places): the tree's header keeps the location's name in whole words - #539

Open
ibrahimroshdy wants to merge 1 commit into
mainfrom
fix/place-tree-header-name
Open

ibrahimroshdy wants to merge 1 commit into
mainfrom
fix/place-tree-header-name

Conversation

@ibrahimroshdy

Copy link
Copy Markdown
Collaborator

The place tree's header kept breaking the location's name letter by letter when the tree was narrow, next to Fold all (worse in German, "Alle einklappen").

Closes #462.

The header row now wraps and the name sizes to its full width first (flex-auto), so when the name and the button don't fit on one line the button goes under the name, lined up with its start, and the name keeps whole words. The same approach #431 took for box rows. No new strings.

Definition of done

  • Tests: apps/web/e2e/place-tree-header.spec.ts, seen failing first ("Home", "Street" and "desktop" split mid-word): no word split, the button on one line inside the panel, nothing overflowing, in German at 208 px (Fold all and Open all), English at the widest width, Arabic mirrored at 208 px, and the German outline at 375 px, with axe. place-tree-names, place-tree-width and places-fold still pass. Fast gate green.
  • Docs: n/a (a layout fix, no page describes it).
  • Catalogues: n/a.
  • KEPT_* settings: n/a.
  • Security-relevant: no.
  • Roadmap: Place tree: the location's name in the header breaks character by character when the tree is narrow #462 on 1.14.8.

At its narrowest the place tree left the location's name a few characters
beside Fold all, so it broke a letter or two per line, worse in German
("Alle einklappen"). The name and the button now wrap as a pair, as the
box rows do since #431: the button goes under the name, at its start, when
both don't fit, and the name keeps the line.

The e2e spec checks it at 208 px in German and Arabic, as wide as it goes in
English, and the outline's Fold all at 375 px.

Fixes #462

Signed-off-by: Ibrahim Roshdy <22573766+ibrahimroshdy@users.noreply.github.com>
@ibrahimroshdy
ibrahimroshdy requested a review from a team as a code owner November 12, 2026 18:32
@ibrahimroshdy ibrahimroshdy added this to the 1.14.8 milestone Nov 12, 2026
@ibrahimroshdy ibrahimroshdy added the area: web The app's screens (apps/web) label Nov 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: web The app's screens (apps/web)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Place tree: the location's name in the header breaks character by character when the tree is narrow

1 participant