fix: adjust peek view modal container styles (#7153)
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user