Skip to content

Fix long card titles truncating in Safari#2621

Merged
jayohms merged 1 commit intomainfrom
fix-long-card-title-truncation
Feb 27, 2026
Merged

Fix long card titles truncating in Safari#2621
jayohms merged 1 commit intomainfrom
fix-long-card-title-truncation

Conversation

@olivaresf
Copy link
Contributor

@olivaresf olivaresf commented Feb 27, 2026

Summary

  • text-wrap: balance on .card__title conflicts with -webkit-line-clamp in Safari, causing long titles to collapse and truncate early instead of wrapping across the allowed 3 lines
  • Unsets text-wrap when the title has .overflow-line-clamp (board preview context), matching the existing Safari workaround pattern in card-perma.css
Before After

🤖 Generated with Claude Code

text-wrap: balance conflicts with -webkit-line-clamp in Safari, causing
titles to collapse into fewer lines and truncate early. Unset text-wrap
when the title is line-clamped on the board view.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 27, 2026 03:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a Safari-specific rendering bug where text-wrap: balance conflicts with -webkit-line-clamp, causing long card titles to truncate prematurely instead of wrapping across the allowed 3 lines in board preview contexts.

Changes:

  • Added a Safari workaround that unsets text-wrap when .card__title has the .overflow-line-clamp class, following the existing pattern established in card-perma.css

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@olivaresf olivaresf requested review from andyra and jzimdars February 27, 2026 03:34
Copy link
Member

@jzimdars jzimdars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Further evidence that Safari's implementation of text-wrap is garbage. Thank you for fixing!

@jayohms jayohms merged commit 4819b89 into main Feb 27, 2026
16 checks passed
@jayohms jayohms deleted the fix-long-card-title-truncation branch February 27, 2026 19:14
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.

4 participants