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(Message): Truncate very long names #298

Merged
merged 4 commits into from
Nov 14, 2024

Conversation

rebeccaalpert
Copy link
Member

Our API has name as optional - I'm letting it render as optional and then also adding truncation if it gets really long. We prioritize the timestamp at full width over the name right now - let me know if we want to prioritize the name over the timestamp instead.

Screenshot 2024-11-05 at 3 11 10 PM Screenshot 2024-11-05 at 3 10 50 PM Screenshot 2024-11-05 at 3 10 58 PM Screenshot 2024-11-05 at 3 10 26 PM

@rebeccaalpert rebeccaalpert linked an issue Nov 5, 2024 that may be closed by this pull request
@patternfly-build
Copy link

patternfly-build commented Nov 5, 2024

@@ -50,17 +50,25 @@ export default MessageLoading;

return (
<>
<Message name="Bot" role="bot" avatar={patternflyAvatar} content={`Text-based message from a bot named "Bot`} />
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<Message name="Bot" role="bot" avatar={patternflyAvatar} content={`Text-based message from a bot named "Bot`} />
<Message name="Bot" role="bot" avatar={patternflyAvatar} content={`Text-based message from a bot named "Bot"`} />

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you eagle-eyed Erin!

@rebeccaalpert rebeccaalpert linked an issue Nov 7, 2024 that may be closed by this pull request
Copy link

@kaylachumley kaylachumley left a comment

Choose a reason for hiding this comment

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

Erin with that catch! looks good

@nicolethoen nicolethoen merged commit 0019c2e into patternfly:main Nov 14, 2024
5 checks passed
Copy link

🎉 This PR is included in version 2.1.0-prerelease.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add better documentation for timestamp prop Limit length of chatbot name
5 participants