Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Wrap error title #264

Merged
merged 2 commits into from
Feb 7, 2025
Merged

Conversation

kylemccullen
Copy link
Contributor

Fixes #251

Add a boolean wrapText prop to CardTitle component that when set allows the text to wrap.

This pull request makes the assumption that wrapping text should not be the default, and is only desired on Alerts. If the intention is all CardTitle components should have text wrapped then numberOfLines can be removed.

In this screenshot the Alert title has wrapText prop set, while the title below does not.
image

This is my first pull request for this project. Any feedback is helpful!

@im-adithya
Copy link
Member

im-adithya commented Feb 7, 2025

Thanks @kylemccullen, much appreciated!

Yes, it would be good to remove the numberOfLines prop entirely, I'll add a commit add merge this as we have a release lined up soon 😄

@im-adithya im-adithya merged commit d7b632e into getAlby:master Feb 7, 2025
1 of 2 checks passed
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.

[Fix] Wrap error title
2 participants