FPSMS-frontend
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

layout.tsx 783 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
1234567891011121314151617181920212223242526272829303132
  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. }