fix(app): don't animate review panel in/out
This commit is contained in:
parent
9154cd64e7
commit
0243be86a7
2 changed files with 21 additions and 2 deletions
|
|
@ -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() }}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue