Skip to content

Legend rows keep their height, line swatches show the map's widths - #2

Merged
Weltstaat merged 2 commits into
mainfrom
fix/legend-rows-and-line-widths
Oct 6, 2026
Merged

Weltstaat merged 2 commits into
mainfrom
fix/legend-rows-and-line-widths

Conversation

@Weltstaat

Copy link
Copy Markdown
Contributor

Two fixes for high zoom levels, each with its own changeset (patch → 1.0.2):

  • List rows keep their content height — a host that gives the list a fixed height (the styleeditor's flex column) squeezed the auto grid rows to the cells' min-height, so POI symbols with their names overlapped. grid-auto-rows: max-content; the list scrolls instead.
  • Line swatches show the map's widths — each line swatch used to be scaled on its own to a 16 px stroke, so all wide roads looked equally wide. Strokes up to 30 px are now drawn as wide as on the map (the swatch grows taller around the centred curve); wider stacks share one scale per group, so lines keep their relative widths.

Checked in the styleeditor at Wien Praterstern (z17.5 and z19): no overlaps, major 25.1 px / minor 17.4 px as on the map at z17.5; at z19 the major road hits 30 px and the group scale applies.

🤖 Generated with Claude Code

Weltstaat and others added 2 commits October 6, 2026 15:36
A host that gives the list a fixed height (the styleeditor's flex column)
squeezed the `auto` rows down to the cells' min-height, and symbols with
their names ran into the neighbouring rows. `grid-auto-rows: max-content`
keeps every row as tall as its content; the list scrolls instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every line swatch used to be scaled on its own to a 16 px stroke, so at
high zoom all wide roads looked equally wide. Strokes up to 30 px are now
drawn as wide as on the map, the swatch growing taller around the centred
curve; wider stacks are scaled down with one scale for all lines of a
group (the widest decides), so the lines keep their widths relative to
each other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Weltstaat
Weltstaat merged commit a2055b7 into main Oct 6, 2026
2 checks passed
@Weltstaat
Weltstaat deleted the fix/legend-rows-and-line-widths branch October 6, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant