web: Fix layout for home page panels and logged out content
Created by: philipp-spiess
Fixes https://github.com/sourcegraph/sourcegraph/issues/31560
The layout for the home page panels and logged out content has quite a few requirements:
- It needs to be able to grow up to 90% of the viewport on large pages since some of the pervious queries might get big.
- It should have at least the same width as the search bar, otherwise it looks odd
- This was not working as expected currently and it was possible to get the layout into a stage where the content would collapse below that.
- It needs to support smaller screens by being contained within the screen and not requiring vertical scroll.
This diff fixes the layout to support all three properties by making the panels section behave similarly than the search bar.
Additionally, this fixes responsive use by not capping the layout width to 90% (see Chromatic)
Test plan
Prev | Next | |
---|---|---|
Cloud logged out | ||
Cloud logged in | ||
On-prem null state | ||
On-prem saved search |