Skip to content

Commit ad395e4

Browse files
committed
Only transition from 0, not to
1 parent 833cf3b commit ad395e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TreeView/TreeDepiction/DomainTileButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default function DomainTileButton(
126126
borderBottomLeftRadius: theme.shape.borderRadius,
127127
borderBottomRightRadius: progress * theme.shape.borderRadius,
128128
height: "100%",
129-
transition: "width .75s ease-in-out",
129+
transition: progress ? "width .5s ease" : undefined,
130130
width: `${progress * 100}%`,
131131
}}
132132
/>

0 commit comments

Comments
 (0)