Skip to content

Commit 4aa02a6

Browse files
StiensWoutclaude
andcommitted
fix(web): let the When trigger shrink and keep its muted hover
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 81b9319 commit 4aa02a6

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎apps/web/src/components/settings/KeybindingsSettings.tsx‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -876,12 +876,9 @@ function WhenClauseControl({
876876
<PopoverTrigger
877877
render={
878878
<Button
879-
variant="ghost"
879+
variant={expression ? "ghost" : "ghost-muted"}
880880
size="compact"
881-
className={cn(
882-
"h-6 max-w-full gap-1 px-1 font-mono font-normal text-[12px] sm:text-[12px]",
883-
!expression && "text-muted-foreground",
884-
)}
881+
className="h-6 min-w-0 shrink gap-1 px-1 font-mono font-normal text-[12px] sm:text-[12px]"
885882
/>
886883
}
887884
aria-label={`Edit when clause for ${label}`}

0 commit comments

Comments
 (0)