Repository navigation
Fill the viewport in console and mods panes - #377
Merged
Merged
Conversation
Replace the fixed 800 px cap with a shared tab-fill utility so the log stream and mods list grow with the window. Covers both themes through tokens and keeps the small-screen minimums.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Console log pane and the Mods list stopped at a fixed 800 px cap no
matter how tall the window was, leaving a dead void below them (see the
attached screenshots). Other tabs with their own scroll regions had the
same fixed-cap shape.
Fix
.tab-fillutility inapp.css(@layer utilities):height: calc(100vh - 30rem)with acalc(100dvh - 30rem)overrideinside
@supports, so panes grow with the viewport on desktop andtrack the visual viewport on mobile. The 30 rem offset covers the
shell header, page header, metric tiles, tab strip and gutters.
server-console.svelteandserver-mods.svelteusetab-fillinsteadof
max-h-[800px]. The existing minimums (320/450 px) stay, so smallviewports keep a usable pane and the page scrolls as before.
regions are untouched.
Regression coverage
New
src/lib/tab-fill.test.ts: asserts the utility declares both the vhfallback and the dvh override, and that both panes use
tab-fillwith noreintroduced 800 px cap.
Verification
bun test— 167 pass, 0 fail (includes the 2 new tests).bun run check(svelte-check) — 0 errors, 0 warnings.bash scripts/web-build.sh— production build succeeds and the bundlecontains
.tab-fill{height:calc(100vh - 30rem)}plus the@supportsdvh override; the route chunk carries the classes.
prettier --checkclean on touched files;eslintclean.knowledge-lint— 36 concepts, indexes current.