diff --git a/client/src/App/App.styles.scss b/client/src/App/App.styles.scss index 150520b84..09745eac9 100644 --- a/client/src/App/App.styles.scss +++ b/client/src/App/App.styles.scss @@ -425,6 +425,24 @@ } } +.dms-equal-height-col { + display: flex; // make the Col a flex container +} + +/* If the direct child is an AntD Card, make it fill the column */ +.dms-equal-height-col > .ant-card { + flex: 1 1 auto; + display: flex; + flex-direction: column; +} + +/* Optional: if you want the card body to fill vertically too */ +.dms-equal-height-col > .ant-card .ant-card-body { + flex: 1; + display: flex; + flex-direction: column; +} + //.rbc-time-header-gutter { // padding: 0; //} diff --git a/client/src/components/dms-allocations-summary/dms-allocations-summary.component.jsx b/client/src/components/dms-allocations-summary/dms-allocations-summary.component.jsx index 0c6784158..bb6b6ef96 100644 --- a/client/src/components/dms-allocations-summary/dms-allocations-summary.component.jsx +++ b/client/src/components/dms-allocations-summary/dms-allocations-summary.component.jsx @@ -24,11 +24,10 @@ export default connect(mapStateToProps, mapDispatchToProps)(DmsAllocationsSummar * @param bodyshop * @param jobId * @param title - * @param minHeight * @returns {JSX.Element} * @constructor */ -export function DmsAllocationsSummary({ mode, socket, bodyshop, jobId, title, minHeight }) { +export function DmsAllocationsSummary({ mode, socket, bodyshop, jobId, title }) { const { t } = useTranslation(); const [allocationsSummary, setAllocationsSummary] = useState([]); @@ -98,8 +97,6 @@ export function DmsAllocationsSummary({ mode, socket, bodyshop, jobId, title, mi return ( diff --git a/client/src/components/dms-allocations-summary/rr-dms-allocations-summary.component.jsx b/client/src/components/dms-allocations-summary/rr-dms-allocations-summary.component.jsx index 9cb7ce45f..f35daab9e 100644 --- a/client/src/components/dms-allocations-summary/rr-dms-allocations-summary.component.jsx +++ b/client/src/components/dms-allocations-summary/rr-dms-allocations-summary.component.jsx @@ -50,7 +50,7 @@ function normalizeJobAllocations(ack) { * is now done on the backend via buildRogogFromAllocations/buildRolaborFromRogog. * This component just renders the preview from `ack.rogg` / `ack.rolabor`. */ -export function RrAllocationsSummary({ socket, bodyshop, jobId, title, minHeight }) { +export function RrAllocationsSummary({ socket, bodyshop, jobId, title }) { const { t } = useTranslation(); const [roggPreview, setRoggPreview] = useState(null); const [rolaborPreview, setRolaborPreview] = useState(null); @@ -281,8 +281,6 @@ export function RrAllocationsSummary({ socket, bodyshop, jobId, title, minHeight return ( diff --git a/client/src/components/dms-post-form/cdklike-dms-post-form.jsx b/client/src/components/dms-post-form/cdklike-dms-post-form.jsx index 4fb634428..7fae733cd 100644 --- a/client/src/components/dms-post-form/cdklike-dms-post-form.jsx +++ b/client/src/components/dms-post-form/cdklike-dms-post-form.jsx @@ -38,11 +38,10 @@ import { DMS_MAP } from "../../utils/dmsUtils"; * @param job * @param logsRef * @param mode - * @param minHeight * @returns {JSX.Element} * @constructor */ -export default function CdkLikePostForm({ bodyshop, socket, job, logsRef, mode, minHeight }) { +export default function CdkLikePostForm({ bodyshop, socket, job, logsRef, mode }) { const [form] = Form.useForm(); const { t } = useTranslation(); const [, /*unused*/ setTick] = useState(0); // handy if you need a forceUpdate later @@ -123,11 +122,7 @@ export default function CdkLikePostForm({ bodyshop, socket, job, logsRef, mode, : { totalSale: Dinero(), totalCost: Dinero() }; return ( - +
+ ({ insertAuditTrail: ({ jobid, operation, type }) => dispatch(insertAuditTrail({ jobid, operation, type })) }); -const SUMMARY_MIN_HEIGHT = 545; - export default connect(mapStateToProps, mapDispatchToProps)(DmsContainer); const DMS_SOCKET_EVENTS = { @@ -389,10 +387,9 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse - + {!isRrMode ? ( @@ -410,7 +407,6 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse /> ) : ( @@ -428,15 +424,8 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse )} - - + +