changing col-span with template literal

any idea why this isnt working?
Solution:
Dynamic class names like that don't quite work with Tailwind, it decides on build time what classes to compile, there are some workarounds here https://stackoverflow.com/questions/69687530/dynamically-build-classnames-in-tailwindcss
T
thescotsmav378d ago
Because tailwind can't parse that at compile time. It needs the full class name.
Solution
A
Alejo378d ago
Dynamic class names like that don't quite work with Tailwind, it decides on build time what classes to compile, there are some workarounds here https://stackoverflow.com/questions/69687530/dynamically-build-classnames-in-tailwindcss
T
thescotsmav378d ago
^^^^ I was looking for basically this issue to explain a bit better.
T
teaonrocks378d ago
thanks that helped
Want results from more Discord servers?
Add your server
More Posts
[Solved] T3 Stack PWA ??Does anybody know how to turn a t3 site into a PWA? I am using next-pwa but I am getting a few errortRPC Error: Invalid hook call.Sorry for the noob question I just cant figure out how to do this I have the following tRPC route: eStack?Hey how would I go about creating a website where you can post minecraft servers and include a imageHow would I order by the role?Hello, I'm trying to set up an API, where I return some users. I've got it working, where it returnsPrisma Create with Connect IssueHey! I wasn't able to find another thread explaining this, but I'd love help with this! I have twoGenerating image background jobI'm making a game where you can create levels in HTML5 Canvas and upload them to the api. I will neeHelp with Vercel deploymentHi folks, I am having issues deploying to vercel. I keep getting this error:My DB shouldn’t be this slow, RIGHT❓A fresh DB (pscale) and Table with just two entries, but takes 10s to fetch them (prisma studio) I’❌ tRPC failed on profile.getUserByUsername: No "query"-procedure on path "profile.getUserByUsername"I am a bit lost. This is the profileRouter. export const profileRouter = createTRPCRouter({ getUHelp with Prisma Validator static evaluationI am trying to build a helper function that will allow me to abstract away some deeply nested includDoes invalidate(); perform an actual refetch?I am half way into the course video and I see `void ctx.post.getAll.invalidate();` to show the new pSWR - array of data in one request, one item from array in anotherSo I am using SWR in my nextJS app and I have two routes GET `/courses` gets all classes you are enClerk re-render parent server component on sign out with custom sign out button.Hi I'm probably being a little stupid here but I'm just wondering what the best and most simple way Prisma schema questionHow can I efficiently maintain a user's balance in a database given the following prisma schema, whe