mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 13:01:59 +03:00
fix: adjust peek view modal container styles (#7153)
This commit is contained in:
parent
7095ca1be6
commit
10297766b8
@ -97,6 +97,7 @@ export const modalContentContainer = style({
|
||||
alignItems: 'flex-start',
|
||||
width: '90%',
|
||||
height: '90%',
|
||||
maxWidth: 1248,
|
||||
});
|
||||
|
||||
export const modalContent = style({
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user