-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/strafing timeline #27
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
<div className="min-h-screen p-8 w-full relative" style={{ height: `${totalHeight}px` }}> | ||
{/* Timeline path */} | ||
<div className="absolute left-0 top-0 w-full" style={{ height: `${totalHeight}px` }}> | ||
<svg | ||
className="w-full" | ||
style={{ | ||
height: `${totalHeight}px`, | ||
strokeWidth: '4px', | ||
stroke: 'white', | ||
fill: 'none' | ||
}} | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use tailwind:
https://tailwindcss.com/docs/height#arbitrary-values
https://tailwindcss.com/docs/stroke
https://tailwindcss.com/docs/stroke-width#arbitrary-values
https://tailwindcss.com/docs/fill
Note that when a value is not present in any tailwind className, you can use [] to add an arbitrary value. For example here it would be {h-[${totalHeight}px]}
This will work if totalHeight is constant. If totalHeight would be a variable, you would need to use the style method, so that it updates after the variable changes
No description provided.