Skip to content

Fill the viewport in console and mods panes - #377

Merged
athNdev merged 1 commit into
mainfrom
fix/server-tab-vertical-fill
Nov 7, 2026
Merged

athNdev merged 1 commit into
mainfrom
fix/server-tab-vertical-fill

Conversation

@athNdev

@athNdev athNdev commented Nov 7, 2026

Copy link
Copy Markdown
Owner

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

  • New shared .tab-fill utility in app.css (@layer utilities):
    height: calc(100vh - 30rem) with a calc(100dvh - 30rem) override
    inside @supports, so panes grow with the viewport on desktop and
    track the visual viewport on mobile. The 30 rem offset covers the
    shell header, page header, metric tiles, tab strip and gutters.
  • server-console.svelte and server-mods.svelte use tab-fill instead
    of max-h-[800px]. The existing minimums (320/450 px) stay, so small
    viewports keep a usable pane and the page scrolls as before.
  • Inner scroll regions, the resizable handle, fullscreen console and live
    regions are untouched.

Regression coverage

New src/lib/tab-fill.test.ts: asserts the utility declares both the vh
fallback and the dvh override, and that both panes use tab-fill with no
reintroduced 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 bundle
    contains .tab-fill{height:calc(100vh - 30rem)} plus the @supports
    dvh override; the route chunk carries the classes.
  • prettier --check clean on touched files; eslint clean.
  • knowledge-lint — 36 concepts, indexes current.
  • Both changelog copies byte-identical.

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.
@athNdev
athNdev merged commit 0a7cb77 into main Nov 7, 2026
11 checks passed
@athNdev
athNdev deleted the fix/server-tab-vertical-fill branch November 7, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant