Repository navigation
fix(layout): keep the composer on screen when session tabs are open - #579
Open
frankfnord wants to merge 1 commit into
Open
frankfnord wants to merge 1 commit into
frankfnord wants to merge 1 commit into
Conversation
ChatWindow used h-full inside a block container that also holds SessionTabs, so it took the full height and started below the ~37px tab strip. The bottom 37px (model picker, send button) were clipped by the parent overflow:hidden. Make the chat content container a flex column and let ChatWindow fill the remaining space with flex-1 min-h-0 instead of h-full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
The red It looks like the same macOS timeout flake seen in other |
This branch has not been deployed
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.
With session tabs open, the bottom ~37px of the chat (model picker, send button) are cut off and can't be scrolled into view.
Cause: in
AppShell, the chat content container is a plain block that holds bothSessionTabsandChatWindow.ChatWindow's root usesh-full, so it takes the container's full height but starts below the tab strip, and overflows it by the tab height. The container'soverflow: hiddenclips exactly that strip.Measured in the browser (viewport 1231px): container bottom 1232,
ChatWindowroot top 73 / bottom 1269 / height = container height.Fix:
AppShell.tsx: chat content container becomes a flex column (display: flex; flex-direction: column; min-height: 0).ChatWindow.tsx: root usesflex-1 min-h-0instead ofh-full, so it fills only the space below the tabs.SessionTabsalready hasflex-shrink: 0.Repro: open two or more sessions so the tab strip shows, then look at the bottom of the composer.
Verified:
tsc --noEmitclean, eslint 0 errors (5 pre-existing warnings in untouched lines ofAppShell.tsx), 672 tests pass in./components, checked in the browser with tabs open.🤖 Generated with Claude Code
Summary by CodeRabbit