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

Make sure the webhook URL doesn't overflow the container #1879

Merged
merged 2 commits into from
Jan 12, 2025

Conversation

devkiran
Copy link
Collaborator

This pull request includes changes to improve the layout and readability of webhook components in the user interface. The most important changes involve adding CSS classes to handle text overflow and prevent layout shifts.

Improvements to layout and readability:

  • apps/web/ui/webhooks/webhook-card.tsx: Added flex-shrink-0 class to prevent the avatar from shrinking and overflow-hidden class to handle text overflow. Modified the URL display to use the truncate class for better text handling.
  • apps/web/ui/webhooks/webhook-header.tsx: Added break-all class to the URL link to ensure long URLs break appropriately and do not overflow the container.

- Updated the webhook card to use 'overflow-hidden' and 'truncate' for better URL handling.
- Modified the webhook header to allow for line breaks in the URL display, enhancing readability.

These changes enhance the user interface by ensuring that long URLs are displayed more effectively without breaking the layout.
Copy link

vercel bot commented Jan 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dub ✅ Ready (Inspect) Visit Preview Jan 12, 2025 1:37pm

@steven-tey steven-tey merged commit 90812dc into main Jan 12, 2025
5 of 6 checks passed
@steven-tey steven-tey deleted the webhook-ui-fixes branch January 12, 2025 15:50
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