Skip to content

Conversation

@LuohuaRain
Copy link
Contributor

@LuohuaRain LuohuaRain commented Aug 10, 2024

Pull Request

When I set ToastTopCTAType.Timestamp, the timestamp width is incorrect, casuing the string to wrap. As shown below:

Before

image

image

After

image

image

📖 Description

This PR fixes a width issue where the layout breaks when displayed in an i18n context. The previous implementation used a fixed width, which caused display problems due to varying text lengths in different languages. The changes ensure that the width is flexible and adapts to the content, providing a consistent user experience across all supported languages. Please review the changes and let me know if any adjustments are needed.

✅ Checklist

General

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

  • I have added a new component
  • I have added Unit Tests for my new component
  • I have modified an existing component
  • I have validated the Unit Tests for an existing component

⏭ Next Steps

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.

3 participants