Skip to content

fix: overflow in Badge component in mobile layout (issue) #84

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

josergz
Copy link

@josergz josergz commented Feb 28, 2025

Description of changes

I worked on the open issue: Background gradient cut off on mobile devices.

Problem:

The issue occurs when the badge text is too long, causing the background to break on mobile view.

Problem example:

image

Solution:

The Badge.astro file was edited, changing the whitespace-nowrap property to whitespace-normal. This allows the text to wrap automatically to fit the available width, preventing the design from breaking on mobile devices.

Solution example:

image

Copy link

netlify bot commented Feb 28, 2025

Deploy Preview for animated-churros-60739d ready!

Name Link
🔨 Latest commit 5b072c4
🔍 Latest deploy log https://app.netlify.com/sites/animated-churros-60739d/deploys/67c104bed7a6e700084ac4de
😎 Deploy Preview https://deploy-preview-84--animated-churros-60739d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

1 participant