fix(theme): fill SidebarPage viewport to close NFS layout gap - #4151
Conversation
Fixes: https://redhat.atlassian.net/browse/RHDHBUGS-3498 Signed-off-by: Yi Cai <yicai@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Changed Packages
|
PR Summary by QodoFix theme: make BackstageSidebarPage fill viewport to remove NFS layout gap
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4151 +/- ##
=======================================
Coverage 58.06% 58.06%
=======================================
Files 2411 2411
Lines 96367 96367
Branches 26806 26806
=======================================
+ Hits 55953 55954 +1
+ Misses 40218 40217 -1
Partials 196 196
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
11 rules✅ Cross-repo context Explored:
repo: redhat-developer/rhdh (sha: 84072ae9) Not relevant to this PR:
redhat-developer/rhdh-chart Not relevant to this PR:
redhat-developer/rhdh-operator Not relevant to this PR:
redhat-developer/rhdh-local 1. SidebarPage height contract drift
|




Description
Fixes the NFS viewport gap on short pages (e.g. Settings) by restoring height participation on
BackstageSidebarPagein the theme plugin. Short pages no longer collapse to content height and leave a body/page-inset bleed under the shell.The page root now uses
minHeight: 100vhwith a column flex layout so BUI containers can grow, and desktop content wells (main, article/BackstageContent, non-headerbui-Container) usemainSectionBackgroundColorwith a matchingminHeightonmain. This is a shell-level theme fix — not anApplicationDrawerchange (supersedes the approach in #4077).Fixed
Test Plan
workspaces/intelligent-assistant,workspaces/app-defaultswith theme, or RHDHyarn workspace backend start:next)#rootfills the viewport (no body background bleed)mainminHeight/maxHeightmain:has([data-testid='techdocs-native-shadowroot'])override)Checklist
Made with Cursor