mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
Fix dialog positioning
This commit is contained in:
parent
00fe422711
commit
1316089fc9
|
@ -56,12 +56,17 @@ function Modal({
|
|||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className='fixed top-0 left-0 w-full h-full z-modal'>
|
||||
<div className={clsx('z-navigation', 'fixed top-0 left-0', 'w-full h-full', 'cc-modal-blur')} />
|
||||
<div className={clsx('z-navigation', 'fixed top-0 left-0', 'w-full h-full', 'cc-modal-backdrop')} />
|
||||
<motion.div
|
||||
ref={ref}
|
||||
className={clsx('z-modal', 'fixed m-auto', 'border shadow-md', 'clr-app')}
|
||||
className={clsx(
|
||||
'z-modal',
|
||||
'absolute bottom-1/2 left-1/2 -translate-x-1/2 translate-y-1/2',
|
||||
'border shadow-md',
|
||||
'clr-app'
|
||||
)}
|
||||
initial={{ ...animateModal.initial }}
|
||||
animate={{ ...animateModal.animate }}
|
||||
exit={{ ...animateModal.exit }}
|
||||
|
@ -107,7 +112,7 @@ function Modal({
|
|||
/>
|
||||
</div>
|
||||
</motion.div>
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -61,13 +61,7 @@ function DlgShowAST({ hideWindow, syntaxTree, expression }: DlgShowASTProps) {
|
|||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
<div
|
||||
className='relative'
|
||||
style={{
|
||||
width: 'calc(100vw - 6rem - 2px)',
|
||||
height: 'calc(100vh - 14rem - 2px)'
|
||||
}}
|
||||
>
|
||||
<div className='relative w-[calc(100vw-6rem-2px)] h-[calc(100vh-14rem-2px)]'>
|
||||
<GraphUI
|
||||
animated={false}
|
||||
nodes={nodes}
|
||||
|
|
|
@ -46,7 +46,7 @@ function DlgUploadRSForm({ hideWindow }: DlgUploadRSFormProps) {
|
|||
canSubmit={!!file}
|
||||
onSubmit={handleSubmit}
|
||||
submitText='Загрузить'
|
||||
className='w-[20rem] px-6'
|
||||
className='w-[25rem] px-6'
|
||||
>
|
||||
<FileInput label='Выбрать файл' acceptType={EXTEOR_TRS_FILE} onChange={handleFile} />
|
||||
<Checkbox
|
||||
|
|
Loading…
Reference in New Issue
Block a user