| … | … | @@ -274,6 +275,18 @@ function PoolSegment({ | |
| 284 | + | left: `${timeLeft}%`, | |
| 285 | + | backgroundImage: | |
| 286 | + | "repeating-linear-gradient(to bottom, currentColor 0 3px, transparent 3px 6px)", | |
| 287 | + | }} | |
Tailwind at the owner: move the static dashed backgroundImage into a Tailwind class; keep only the runtime left value in style.
| 1 | className="absolute inset-y-0 w-px -translate-x-1/2 bg-[repeating-linear-gradient(to_bottom,currentColor_0_3px,transparent_3px_6px)] text-foreground opacity-50" |
| 2 | style={{ left: `${timeLeft}%` }} |
Posted via Macroscope — UI Consistency
Note
🤖 Claude Opus 5.5 on behalf of Oliver
Tried this, but the repo lint rejects it: shadcn(no-arbitrary-values): "bg-[repeating-linear-gradient(...)]" hardcodes an off-token value. A named utility for one mark would add CSS machinery for a single use, so the static gradient stays in style next to the runtime left, like the hatching above it.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.