Update NewDocumentJob Component for Improved TemplatePreview Layout
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
- Adjusted the sidebar div in the NewDocumentJob component to use a calculated height for better responsiveness. - Ensured the sidebar maintains a minimum width, enhancing the overall layout and user experience of the TemplatePreview.
This commit is contained in:
parent
fb52a14dd0
commit
d944697f9c
@ -57,7 +57,13 @@ const NewDocumentJob = ({ onOk, defaultValues = {} }) => {
|
||||
disabled={downloading}
|
||||
sideBarGrow={true}
|
||||
sideBar={
|
||||
<div style={{ minHeight: '760px', flexGrow: 1 }}>
|
||||
<div
|
||||
style={{
|
||||
height: 'calc(100vh - 240px)',
|
||||
flexGrow: 1,
|
||||
minWidth: 0
|
||||
}}
|
||||
>
|
||||
<TemplatePreview
|
||||
objectData={objectData?.object}
|
||||
documentTemplate={objectData?.documentTemplate}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user