FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
783 B

  1. "use client";
  2. import Box from "@mui/material/Box";
  3. /**
  4. * Segment layout for `/po/workbench`: constrains children to the main content height
  5. * established by `MainContentArea` (viewport minus the AppBar toolbar) and prevents
  6. * overflow from propagating to the document scroll.
  7. *
  8. * Document `overflow: hidden` for this route is set in `global.css` via
  9. * `html:has([data-po-workbench-layout])` (no per-route `useEffect` on `html`/`body`).
  10. */
  11. export default function PoWorkbenchLayout({
  12. children,
  13. }: {
  14. children: React.ReactNode;
  15. }) {
  16. return (
  17. <Box
  18. data-po-workbench-layout=""
  19. sx={{
  20. boxSizing: "border-box",
  21. flex: 1,
  22. height: "100%",
  23. minHeight: 0,
  24. overflow: "hidden",
  25. }}
  26. >
  27. {children}
  28. </Box>
  29. );
  30. }