nunomaduro / termwind

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

fix: Truncate to work well with `w-full` or `w-division`. #155

Closed xiCO2k closed 1 year ago

xiCO2k commented 1 year ago

This PR adds a bug fix when using truncate with w-full or w-1/2.

render(<<<HTML
    <div class="mx-2 my-1">
        <div class="w-full truncate">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sunt illo et nisi omnis porro at, mollitia harum quas esse, aperiam dolorem ab recusandae fugiat nesciunt doloribus rem eaque nostrum itaque.</div>
    </div>
HTML);

Before

image

After

image
nunomaduro commented 1 year ago

@xiCO2k Can you test this pull request, with any potential output effected on Laravel Framework? If is working good, you can merge and release.

xiCO2k commented 1 year ago

Sure thing, will do later today.