Update NewDocumentJob Component for Improved TemplatePreview Layout
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:
Tom Butcher 2026-08-22 13:19:57 +01:00
parent fb52a14dd0
commit d944697f9c

View File

@ -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}