Skip to content

Commit

Permalink
[sparkle] - fix: adjust leaf item width in Tree component (#8657)
Browse files Browse the repository at this point in the history
- Change the width of the leaf div from class s-w-4 to s-w-3 for better alignment or visual balance
  • Loading branch information
JulesBelveze authored Nov 15, 2024
1 parent 7037e74 commit 6f1ef4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparkle/src/components/Tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Tree.Item = function ({
}}
/>
)}
{type === "leaf" && <div className="s-w-4 s-flex-shrink-0"></div>}
{type === "leaf" && <div className="s-w-3 s-flex-shrink-0"></div>}
{checkbox && <Checkbox {...checkbox} size="xs" />}
<Icon visual={visual} size="sm" className={tailwindIconTextColor} />
<div
Expand Down

0 comments on commit 6f1ef4a

Please sign in to comment.