Skip to content

Commit f8e4c96

Browse files
committed
fix(web): selected provider ring no longer clipped during panel resize
While the setup panel animates its height it clips its overflow. The selected provider card's ring paints 2px outside the card, and the grid's first column sits flush with the wrapper's left edge, so `overflow: hidden` erased that strip for the whole transition. Use `overflow: clip` with a matching clip margin: the overflowing content is still hidden, but the ring keeps painting.
1 parent 48b71f0 commit f8e4c96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/web/src/components/AnimatedHeight.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ export function AnimatedHeight({
8080
return (
8181
<div
8282
data-slot="animated-height"
83-
className="transition-[height] duration-200 ease-out motion-reduce:transition-none"
83+
className="transition-[height] duration-200 ease-out motion-reduce:transition-none [overflow-clip-margin:2px]"
8484
style={
8585
heightState.height === null
8686
? undefined
87-
: { height: heightState.height, overflow: heightState.isClipping ? "hidden" : "visible" }
87+
: { height: heightState.height, overflow: heightState.isClipping ? "clip" : "visible" }
8888
}
8989
onTransitionEnd={(event) => {
9090
if (event.target !== event.currentTarget || event.propertyName !== "height") return;

0 commit comments

Comments
 (0)