Private
Public Access
Fix UpdateBanner pushing the composer off the bottom of the screen
Every top-level page independently hardcoded a full-viewport height (.chat-shell: 100vh, .admin-page: 100%, .login-screen family: min-height 100vh), assuming it alone owned the whole viewport. UpdateBanner renders globally above all of them (App.tsx), so its height just stacked on top instead of the page shrinking to make room -- on ChatShellPage specifically (overflow: hidden), that clipped the bottom of the screen and hid the composer behind the visible edge. Made #root a flex column shared by the banner and whichever page is routed, with each page now using flex: 1; min-height: 0 to fill whatever space is actually left instead of assuming the full viewport. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
.admin-page {
|
||||
height: 100%;
|
||||
/* Fills whatever's left in #root's flex column after UpdateBanner --
|
||||
see tokens.css. height:100% resolved to the full viewport regardless
|
||||
of the banner, causing the same off-screen-content bug ChatShellPage
|
||||
had. */
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--ds-void);
|
||||
|
||||
Reference in New Issue
Block a user