line-clamp-3 not being applied on conditional rendering #18024
Unanswered
AbdullahAhmadAAK
asked this question in
Help
Replies: 1 comment
-
In the Tailwind Play at least, you'd want to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of Tailwind CSS are you using?
"tailwind-merge": "^2.6.0",
"tailwind-scrollbar-hide": "^2.0.0",
"tailwindcss-animate": "^1.0.7",
What build tool (or framework if it abstracts the build tool) are you using?
What version of Node.js are you using?
What browser are you using?
Chrome Version 136.0.7103.93
What operating system are you using?
Windows 10
Reproduction URL
see the issue here
Describe your issue
I am trying to have this clamped at 3 lines, but it's not working. The tailwind class definition does show up in inspect element mode, so it is not an issue of tailwind classes being purged. I am using a recent version of tailwind which already has the line clamp plugin being used by default.
My editor page's page.tsx file has this, where the snippet above can be found within PixelArtEditorClientComponent:
Beta Was this translation helpful? Give feedback.
All reactions