fix: adjust peek view modal container styles (#7153)

This commit is contained in:
pengx17 2024-06-06 07:27:25 +00:00
parent 7095ca1be6
commit 10297766b8
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED
2 changed files with 2 additions and 1 deletions

View File

@ -97,6 +97,7 @@ export const modalContentContainer = style({
alignItems: 'flex-start',
width: '90%',
height: '90%',
maxWidth: 1248,
});
export const modalContent = style({

View File

@ -72,7 +72,7 @@ export const PeekViewModalContainer = ({
onAnimateEnd?: () => void;
}>) => {
const [{ status }, toggle] = useTransition({
timeout: animationTimeout * 2,
timeout: animationTimeout * 1.5,
onStateChange(event) {
if (event.current.status === 'exited' && onAnimateEnd) {
onAnimateEnd();