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
2 changed files with 2 additions and 1 deletions

View File

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

View File

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