Skip to content

fix: prevent long card titles from overflowing column width#367

Merged
hjball merged 1 commit intokanbn:mainfrom
kOaDT:fix/card-title-overflow
Feb 8, 2026
Merged

fix: prevent long card titles from overflowing column width#367
hjball merged 1 commit intokanbn:mainfrom
kOaDT:fix/card-title-overflow

Conversation

@kOaDT
Copy link
Contributor

@kOaDT kOaDT commented Feb 7, 2026

Summary

Long unbreakable strings (e.g. URLs) in card titles caused columns to expand beyond their fixed width, triggering horizontal scrolling and degrading the drag-and-drop experience

Added overflow-hidden to the card container and break-words to the title span so long strings wrap naturally within the card boundaries

Linked issue: #341

Before

Capture d’écran du 2026-02-07 22-58-56

After

Capture d’écran du 2026-02-07 22-58-41

Test plan

  • Create a card with a long URL as the title
  • Verify the title wraps within the card without expanding the column width
  • Verify no horizontal scrollbar appears on the board
  • Verify drag-and-drop still works correctly with long titles
  • Verify normal short titles are unaffected

Thank you for building and maintaining Kan. It's a beautifully crafted OSS. Happy to contribute! 🙏

Copy link
Contributor

@hjball hjball left a comment

Choose a reason for hiding this comment

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

Nice work @kOaDT

@hjball
Copy link
Contributor

hjball commented Feb 7, 2026

Glad to have you onboard!

@hjball hjball merged commit 008b5fd into kanbn:main Feb 8, 2026
1 check passed
Silverbrain pushed a commit to Silverbrain/kan that referenced this pull request Feb 21, 2026
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.

2 participants