VilloKodeHode / mega-collab-modul-s

https://mega-collab-modul-s-u9ph.vercel.app
5 stars 0 forks source link

Utilizing flexbox's size benefits #58

Closed kristofferfh closed 1 month ago

kristofferfh commented 1 month ago

I propose that we start using flexbox on <body> element so that we can use flex:1 to automatically resize everybody's <main> container. This change assumes that we will continue to use a layout where an element will take up space and move the <main> element with the flow. Everyone who wants to use this to automatically resize their <main> element can just add flex-1 to its classnames. This change would only modify layout.tsx by changing the <body> element with a new set of tailwind classes.

See attached branch for proposed changes.