Skip to content

Commit

Permalink
Permet au children du Layout d'occuper la hauteur restante si nécessaire
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Molinos authored and marc-rutkowski committed May 13, 2024
1 parent bdd4eeb commit 8d7325c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app.territoiresentransitions.react/src/app/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ type Props = {
const Layout = ({children}: Props) => {
return (
<div className="flex flex-col h-[100vh] overflow-hidden">
<div id="main" className="w-full overflow-x-hidden overflow-y-auto">
<div
id="main"
className="flex-grow flex flex-col w-full overflow-x-hidden overflow-y-auto"
>
<Header />
{children}
<Footer />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`Storyshots app/Layout Exemple 1`] = `
className="flex flex-col h-[100vh] overflow-hidden"
>
<div
className="w-full overflow-x-hidden overflow-y-auto"
className="flex-grow flex flex-col w-full overflow-x-hidden overflow-y-auto"
id="main"
>
<header
Expand Down

0 comments on commit 8d7325c

Please sign in to comment.