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

bug: The .collapse-content and .collapse-title extend beyond the width of the .collapse elementi itself #2965

Open
gremo opened this issue Apr 9, 2024 · 3 comments

Comments

@gremo
Copy link

gremo commented Apr 9, 2024

What version of daisyUI are you using?

4.9.0

Which browsers are you seeing the problem on?

Chrome

Reproduction URL

https://play.tailwindcss.com/0EeccAgk1i

Describe your issue

The .collapse-content and .collapse-title extend beyond the width of the .collapse elementi itself.

The problem seems not to be related to the content itself, as the following can shrink to the parent width:

<div class="collapse-content visible">
  <div class="flex items-center gap-4">
    <span>Label</span>
    <p class="truncate ml-auto text-primary">
      a word that refers to a lung disease contracted from the inhalation 
      of very fine silica particles, specifically from a volcano; medically, it
      is the same as silicosis.
   </p>
  </div>
</div>
Copy link

github-actions bot commented Apr 9, 2024

Thank you @gremo for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@gremo
Copy link
Author

gremo commented Apr 9, 2024

Additional context: grid-template-columns: minmax(0, 1fr) seems to solve the problem.

@perelin
Copy link

perelin commented Apr 15, 2024

Same issue here. Fix by @gremo seems to work.

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

No branches or pull requests

2 participants