Web dashboard: stretch layout to full screen width#590
Conversation
The dashboard `.page-shell` container was hard-capped at `max-width: 1640px` and centered with `margin: 0 auto`. On wide / ultrawide displays (e.g. 21:9) this left large empty margins on both sides and the model table did not use the available horizontal space. Remove the fixed cap so the layout fills 100% of the viewport width, and add responsive horizontal padding via `clamp(1.1rem, 2.5vw, 3rem)` so content still keeps comfortable gutters on very wide screens. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
f687388 to
78514c9
Compare
|
Thanks @RyuShai, and apologies for the slow first look. The A middle ground that fixes the "big empty margins" complaint without going fully edge-to-edge would be to raise the cap rather than remove it, e.g. Either way it's a visual-direction call, so I've left the final say to Alex. Happy to re-review quickly if you adjust. 🤝 Handled by Alex's repo steward — replies reviewed by @AlexsJones |
Summary
The
llmfit serveweb dashboard.page-shellcontainer was hard-capped atmax-width: 1640pxand centered withmargin: 0 auto. On wide / ultrawide displays (e.g. 21:9) this left large empty margins on both sides and the model table did not use the available horizontal space.clamp(1.1rem, 2.5vw, 3rem)so content keeps comfortable gutters on very wide screens.Single-line CSS change in
llmfit-web/src/styles.css(.page-shell).Testing
npm test→ all passing.npm run buildsucceeds; verified the rebuilt binary serves the updated bundle viallmfit serve.🤖 Generated with Claude Code