Skip to content

Commit

Permalink
fix: show "delete variable" in variable tooltip (#4322)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound authored Oct 21, 2024
1 parent 257d760 commit 5ee0860
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,12 @@ export const PropertyInfo = ({
</Flex>
}
suffix={<Kbd value={["option", "click"]} color="moreSubtle" />}
css={{ gridTemplateColumns: "2fr 3fr 1fr" }}
css={{ gridTemplateColumns: "1fr max-content 1fr" }}
onClick={onReset}
>
Reset value
{styles[0].property.startsWith("--")
? "Delete variable"
: "Reset value"}
</Button>
)}
</Flex>
Expand Down

0 comments on commit 5ee0860

Please sign in to comment.