fix(dashboard): Styling of dashed divider (#7483)

This commit is contained in:
Kasper Fabricius Kristensen
2024-05-28 08:48:26 +02:00
committed by GitHub
parent 916f0cb6d0
commit 9d3c7829bc

View File

@@ -18,10 +18,16 @@ export const Divider = ({
aria-orientation={orientation}
role="separator"
className={clx(
"border-ui-border-strong",
{
"w-full border-t": orientation === "horizontal",
"h-full border-l": orientation === "vertical",
"border-dashed": variant === "dashed",
"w-full border-t":
orientation === "horizontal" && variant === "solid",
"h-full border-l": orientation === "vertical" && variant === "solid",
"bg-transparent": variant === "dashed",
"h-px w-full bg-[linear-gradient(90deg,var(--border-strong)_1px,transparent_1px)] bg-[length:4px_1px]":
variant === "dashed" && orientation === "horizontal",
"h-full w-px bg-[linear-gradient(0deg,var(--border-strong)_1px,transparent_1px)] bg-[length:1px_4px]":
variant === "dashed" && orientation === "vertical",
},
className
)}