Skip to content

Commit f081022

Browse files
committed
fix: always reserve space for unset button to prevent row height jump
1 parent cf73d10 commit f081022

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

apps/webapp/app/components/admin/FeatureFlagsDialog.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,13 @@ export function FeatureFlagsDialog({
158158
</div>
159159

160160
<div className="flex items-center gap-2">
161-
{isOverridden && (
162-
<Button variant="minimal/small" onClick={() => unsetFlag(key)}>
163-
unset
164-
</Button>
165-
)}
161+
<Button
162+
variant="minimal/small"
163+
onClick={() => unsetFlag(key)}
164+
className={cn(!isOverridden && "invisible")}
165+
>
166+
unset
167+
</Button>
166168

167169
{control.type === "boolean" && (
168170
<BooleanControl

0 commit comments

Comments
 (0)