nunomaduro / termwind

🍃 In short, it's like Tailwind CSS, but for the PHP command-line applications.
MIT License
2.29k stars 78 forks source link

feat: Add `min-w-{width}` class. #143

Closed xiCO2k closed 2 years ago

xiCO2k commented 2 years ago

This PR adds support for the min-w-{width} class.

With this addition it will possible to make stuff like this:

render(<<<HTML
    <div class="flex my-1 mx-2 space-x-1">
        <span class="px-1 bg-gray">
            min-w
        </span>
        <span class="flex-1 content-repeat-[.] text-gray min-w-3"></span>
        <span>
            With the `min-w` addition you can make sure that the content repeat always repeat even if there is no space on the line.
        </span>
    </div>
HTML);

Result

image
xiCO2k commented 2 years ago

This PR depends on the merge of #142.