pengx17
2024-08-29 16:45:23 +00:00
parent adf314d594
commit f544e69d02
2 changed files with 10 additions and 1 deletions

View File

@@ -142,7 +142,9 @@ export const ModalInner = forwardRef<HTMLDivElement, ModalProps>(
children,
contentWrapperClassName,
contentWrapperStyle,
animation = 'fadeScaleTop',
animation = environment.isBrowser && environment.isMobile
? 'slideBottom'
: 'fadeScaleTop',
...otherProps
} = props;
const { className: closeButtonClassName, ...otherCloseButtonProps } =

View File

@@ -75,6 +75,13 @@ export const modalContentWrapper = style({
alignItems: 'center',
justifyContent: 'center',
zIndex: cssVar('zIndexModal'),
'@media': {
'screen and (width <= 640px)': {
// todo: adjust animation
alignItems: 'flex-end',
paddingBottom: 32,
},
},
selectors: {
'&.anim-none': {