fix(ui): key info view goes blank below the fold on small viewports - #27370
Conversation
The KeyInfoView root used `h-screen` with no overflow fallback, nested inside a parent that is `overflow-hidden`. Combined with an inner `max-h-[65vh] overflow-y-auto` on the Settings Card, content that exceeded the viewport height (common on a 13" MacBook Air) was clipped instead of scrolled — leaving the bottom of the page blank with no scrollbar. Switch the root to `h-full overflow-y-auto` so the detail page scrolls as a single column inside whatever space its parent provides, and drop the redundant inner scroll region on the Settings Card. Co-Authored-By: Claude Sonnet 4 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR fixes a layout clipping bug in
Confidence Score: 5/5Safe to merge — two targeted Tailwind class edits with no logic, data, or API changes. The change is purely presentational: one class swap on a wrapper div and the removal of two utility classes from a Card. Both usages of KeyInfoView (in VirtualKeysTable and view_logs) behave correctly after the fix — the VirtualKeysTable parent's overflow-hidden container now scrolls as intended, and the view_logs context is unaffected because h-full resolves to content height there and page-level scroll takes over naturally. No files require special attention.
|
| Filename | Overview |
|---|---|
| ui/litellm-dashboard/src/components/templates/key_info_view.tsx | Two Tailwind className edits: root h-screen → h-full overflow-y-auto, Settings Card loses overflow-y-auto max-h-[65vh]; fixes blank-below-the-fold on small viewports with no logic changes. |
Reviews (1): Last reviewed commit: "fix(ui): key info view goes blank below ..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
b6e3d6b
into
BerriAI:litellm_agent_oss_staging_05_07_2026
|
🤖 litellm-agent: Squash-merged into staging branch Triage Summary Merge Confidence: 5/5 ✅ READY All checks green. Greptile 5/5, no blocking pattern findings, no CircleCI runs (OSS-typical). |
PR: fix(ui): key info view goes blank below the fold on small viewports
Relevant issues
Pre-Submission checklist
npm run testpasses for affected filesclassNamelines@greptileaiand get Confidence Score ≥ 4/5 before requesting maintainer reviewType
🐛 Bug Fix
Changes
Root cause
On the Virtual Keys detail page (
KeyInfoView), opening a key on a smallviewport (13" MacBook Air, ~750 px tall) showed the header and the first tab
correctly — but switching to the Settings tab (or scrolling down) left the
lower half of the page blank. No scrollbar appeared.
The layout chain locked the page into a fixed-height box with no scroll
fallback:
On a 750 px viewport the math is:
65vh≈ 487 pxThe outer
<div className="w-full h-screen p-4">has nooverflow-y-auto,and its parent in
VirtualKeysTableisoverflow-hidden. So when contentexceeds the viewport height, the bottom is clipped instead of scrolled —
including the inner Card's own scroll region. The user sees blank space and
cannot reach the cut-off content.
The Overview tab fits because its Grid of summary Cards is short. Settings is
where it surfaces because the form is long.
Reproduce:
Virtual Keys page and click into any key.
below the viewport is blank, with no scrollbar.
Fix
Replace the fixed
h-screenwithh-full overflow-y-autoon theKeyInfoViewroot, and drop the inner Card'smax-h-[65vh] overflow-y-auto.Now the entire detail page scrolls as a single column inside whatever space
the parent gives it.
Why both edits:
h-full overflow-y-automakesKeyInfoViewfill its parent (no longerhard-locked at
100vh) and supplies its own scrollbar when contentoverflows.
max-h-[65vh] overflow-y-autoon the Settings Card eliminates aredundant nested scroll region. With one outer scroll, the Card naturally
flows; nesting a second scroll inside a clipped parent is exactly what
caused the blank-below-the-fold symptom.
Files changed
ui/litellm-dashboard/src/components/templates/key_info_view.tsxh-screen→h-full overflow-y-auto. Settings Card: removeoverflow-y-auto max-h-[65vh].