fix(app): don't animate review panel in/out

This commit is contained in:
Adam
2026-03-09 07:49:01 -05:00
parent 9154cd64e7
commit 0243be86a7
2 changed files with 21 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ export function SessionSidePanel(props: {
reviewPanel: () => JSX.Element
activeDiff?: string
focusReviewDiff: (path: string) => void
reviewSnap: boolean
size: Sizing
}) {
const params = useParams()
@@ -228,7 +229,7 @@ export function SessionSidePanel(props: {
classList={{
"pointer-events-none": !open(),
"transition-[width] duration-[240ms] ease-[cubic-bezier(0.22,1,0.36,1)] will-change-[width] motion-reduce:transition-none":
!props.size.active(),
!props.size.active() && !props.reviewSnap,
}}
style={{ width: panelWidth() }}
>