Skip to content

Commit 5ee0860

Browse files
authored
fix: show "delete variable" in variable tooltip (#4322)
Ref #3399 ![Screenshot 2024-10-20 at 10 41 55](https://github.com/user-attachments/assets/d194cc13-efec-40fa-8021-13d2473188a1)
1 parent 257d760 commit 5ee0860

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/builder/app/builder/features/style-panel/property-label.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,12 @@ export const PropertyInfo = ({
183183
</Flex>
184184
}
185185
suffix={<Kbd value={["option", "click"]} color="moreSubtle" />}
186-
css={{ gridTemplateColumns: "2fr 3fr 1fr" }}
186+
css={{ gridTemplateColumns: "1fr max-content 1fr" }}
187187
onClick={onReset}
188188
>
189-
Reset value
189+
{styles[0].property.startsWith("--")
190+
? "Delete variable"
191+
: "Reset value"}
190192
</Button>
191193
)}
192194
</Flex>

0 commit comments

Comments
 (0)