tgstation / tgstation-server-webpanel

React application for interacting with tgstation-server
GNU Affero General Public License v3.0
10 stars 11 forks source link

Remove container margins on smaller (unsupported) displays. #163

Closed MrStonedOne closed 7 months ago

MrStonedOne commented 7 months ago

The whole max-width thing has always been kinda silly. The chosen viewport sizes are always monitor widths which assumes that somebody isn't gonna have a browser window smaller than their monitor but they will. Be it vertical taskbars, or tiling window managers or just doing a windows 7 and up drag to the side split screen, this assumption just doesn't hold up. having the page have a width of 720px unless i can get the viewpoint to exactly 992px or higher is silly ya know?

None the less thats all bootstrap side, not us, so this will work for the primary case the bootstrap way shows its flaws.

For those of you with access, this is live on campbell's tgs on the v5.2.4 tag of my fork but should work just as well on current.

this is still not ideal:

image

but its better than this image

(viewport of ~900px, 1024px portrait monitor with a vertical taskbar)