mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 09:06:19 +08:00
372377dd6b
Co-authored-by: Himself65 <himself65@outlook.com>
22 lines
508 B
TypeScript
22 lines
508 B
TypeScript
import type { CSSProperties } from 'react';
|
|
|
|
import { styled } from '../../styles';
|
|
|
|
export const ModalWrapper = styled('div')<{
|
|
width?: CSSProperties['width'];
|
|
height?: CSSProperties['height'];
|
|
minHeight?: CSSProperties['minHeight'];
|
|
}>(({ theme, width, height, minHeight }) => {
|
|
return {
|
|
width,
|
|
height,
|
|
minHeight,
|
|
backgroundColor: 'var(--affine-white)',
|
|
borderRadius: '16px',
|
|
position: 'relative',
|
|
maxHeight: 'calc(100vh - 32px)',
|
|
};
|
|
});
|
|
|
|
export default ModalWrapper;
|