Why does the main content not shrink smaller than the sidebar?
Because the sidebar has a fixed width (w-64) and the main content uses flex-grow (flex-1), it fills leftover space but won't shrink below zero. The sidebar's fixed width sets a minimum size.
💡 Fixed width sidebar + flex-grow main content means sidebar size is stable, main content adapts.
Why does the sidebar stretch full height of the screen?
The parent container has min-h-screen which sets minimum height to full viewport height, and flex makes children stretch vertically by default.
💡 Flex container with min-h-screen makes children fill vertical space.
What if I want the sidebar on the right instead of left?
You can reorder the HTML elements or use flex-row-reverse on the container to flip their order visually.
💡 Flexbox order depends on element order or flex-direction property.