Fix Workflow layout show page (#18447)

## Summary

Fixes the workflow show page being blank after the `styled(Component)`
removal in #18430.

- PR #18430 replaced `styled(PageBody)` with a plain `div` wrapper
(`StyledPageBodyForDesktopContainer`) around `PageBody`, but the wrapper
defaulted to `display: block`
- `PageBody`'s internal container uses `flex: 1 1 auto` to size itself,
which requires a flex parent — the block wrapper broke height
propagation, causing React Flow's container to have 0 height
- Added `display: flex; flex-direction: column` to both
`StyledPageBodyForDesktopContainer` and
`StyledPageBodyForMobileContainer` to restore the flex chain

## Test plan

- [x] Open a workflow record show page → diagram nodes are visible
- [x] Open a company/person record show page → fields, tabs, and content
render correctly
- [x] Lint and typecheck pass
This commit is contained in:
Charles Bochet 2026-03-05 23:02:32 +01:00 committed by GitHub
parent 4797f97a95
commit e27a8b5107
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,9 @@ const StyledMainContainerLayoutForDesktop = styled.div`
`;
const StyledPageBodyForDesktopContainer = styled.div`
display: flex;
flex: 1 1 0;
flex-direction: column;
min-width: 0;
width: 0;
@ -38,6 +40,11 @@ const StyledMainContainerLayoutForMobile = styled.div`
`;
const StyledPageBodyForMobileContainer = styled.div`
display: flex;
flex: 1;
flex-direction: column;
min-height: 0;
> * {
padding-bottom: 0;
padding-left: ${themeCssVariables.spacing[1]};