perf: 邮件弹窗的尺寸和位置; `详情`, `写邮件`

dev/emitter
Lei OT 10 months ago
parent b8eeb66464
commit c9be1d860a

@ -54,7 +54,7 @@ const DnDModal = ({ children, open, setOpen, onCancel, onMove, onResize, initial
initialWidth={(mobile ? window.innerWidth : (initial.width ?? 680))} // window.innerWidth < 680
initialHeight={(mobile ? window.innerHeight : (initial.height ?? 600))} // window.innerHeight < 700
initialTop={mobile ? 0 : (initial.top ?? 74)}
initialLeft={mobile ? 0 : (initial.left ?? (window.innerWidth - 700))}
initialLeft={mobile ? 0 : (initial.left ?? (window.innerWidth - 300))}
title={title}
minimizeButton={<></>}
onMove={onHandleMove}

@ -137,7 +137,7 @@ const EmailDetail = ({ open, setOpen, emailMsg={}, ...props }) => {
{mailData.info?.MAI_Subject || emailMsg?.msgOrigin?.email?.subject}
</>
}
initial={{ top: 74 }}
initial={{ top: 74, left: 324 }}
onMove={onHandleMove}
onResize={onHandleResize}
footer={<ActionBtns className='w-full !justify-start' />}>

@ -451,10 +451,7 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, fromOrder, toEma
rootClassName='email-editor-wrapper !border-indigo-300 '
open={open}
setOpen={setOpen}
// initial={{ top: isEmpty(quoteid) ? 20 : 74 }}
initial={{ width: 1200, height: window.innerHeight-40, left: 300 + 24, top: 64 }}
maximizeButton={<></>}
initialStage={'FULLSCREEN'}
initial={{ width: window.innerWidth-600, height: window.innerHeight-40, left: 300 + 24, top: 20 }}
onCancel={() => {
form.resetFields();
}}

Loading…
Cancel
Save