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

feat: Add support for w-auto. #148

Merged
merged 1 commit into from Jul 28, 2022
Merged

Conversation

xiCO2k
Copy link
Collaborator

@xiCO2k xiCO2k commented Jul 28, 2022

This PR add the w-auto class, that just resets the width of the element, it is useful when you use the Media Queries.

Example:

render(<<<'HTML'
    <div class="my-1 mx-2 w-25 sm:w-auto truncate px-1 bg-red text-black">
        When its a sm screen it will have the width set, but with larger sizes it will have no limitation
    </div>
HTML);

Output

image

@xiCO2k xiCO2k requested a review from nunomaduro July 28, 2022 17:02
@nunomaduro
Copy link
Owner

Once tests are fixed, you can merge.

@xiCO2k xiCO2k merged commit 5642e0c into nunomaduro:master Jul 28, 2022
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.

None yet

2 participants