Skip to content

fix(chart): fit long life dates into the person box - #37

Merged
device25 merged 1 commit into
mainfrom
fix/chart-long-life-dates
Oct 25, 2026
Merged

device25 merged 1 commit into
mainfrom
fix/chart-long-life-dates

Conversation

@device25

Copy link
Copy Markdown
Owner

Life dates such as «около 1707 — между 1757 и 1758» ran out of the person box: the years-only fallback is no shorter for them.

Now, when the dates still do not fit:

  • under a one-line name they break after the dash: «около 1707 —» / «между 1757 и 1758»;
  • under a two-line name (no room for a fourth line) the birth stays with an ellipsis: «около 1710 — …».

The card and the box's accessible name keep the full dates. Unit tests cover `wrapLife`.

🤖 Generated with Claude Code

Dates like «около 1707 — между 1757 и 1758» ran out of the box even as
years only. They now break after the dash onto a second line under a
one-line name; under a two-line name the birth stays with an ellipsis.
The card and the accessible name keep the full dates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@device25
device25 force-pushed the fix/chart-long-life-dates branch from 501ef15 to c177873 Compare October 25, 2026 19:01
@device25
device25 merged commit 3b488ef into main Oct 25, 2026
1 check passed
@device25
device25 deleted the fix/chart-long-life-dates branch October 25, 2026 19:03
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