fix(dashboard): Styling of dashed divider (#7483)
This commit is contained in:
@@ -18,10 +18,16 @@ export const Divider = ({
|
|||||||
aria-orientation={orientation}
|
aria-orientation={orientation}
|
||||||
role="separator"
|
role="separator"
|
||||||
className={clx(
|
className={clx(
|
||||||
|
"border-ui-border-strong",
|
||||||
{
|
{
|
||||||
"w-full border-t": orientation === "horizontal",
|
"w-full border-t":
|
||||||
"h-full border-l": orientation === "vertical",
|
orientation === "horizontal" && variant === "solid",
|
||||||
"border-dashed": variant === "dashed",
|
"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
|
className
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user