Repository navigation
fix(tui): keep list dialog footers at the bottom and drop the empty footer gap - #64983
Merged
Merged
Conversation
…ooter gap User decisions: - Manage workspaces keeps its footer at the bottom - Command palette ends with one blank row instead of two
jlongster
enabled auto-merge (squash)
November 19, 2026 21:05
Contributor
There was a problem hiding this comment.
Looks good. With new designs on I ran the base and this PR in OpenCode Drive. On the base, the command palette ends with two blank rows and the Worktrees footer floats mid-dialog when there are only a few worktrees. With this change, the palette ends with one blank row and the Worktrees footer stays at the bottom. Screenshots below. typecheck:tsc and the dialog-layout / dialog-select / command-selection tests pass.
Public API unchanged. grow is a new optional prop on the internal DialogLayout and DialogSelect TUI components.
No concerns.
1 task
4 tasks
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.




What does this PR do?
Two spacing fixes for list dialogs under new designs:
DialogSelectalways passed a footer toDialogLayout, even with no actions or content, so the layout kept its gap before an empty footer on top of its bottom padding. It now passes a footer only when there is something in it. This affects the command palette, agents, themes, variants and other lists without footer actions.DialogLayout(andDialogSelect) take a newgrowoption that lets the body fill that height, and the Worktrees dialog uses it.With new designs off: the footer change only matters when
DialogSelecthas no actions, where the old design already renders its own legacy footer path, andgrowmakes the Worktrees list fill its minimum height there too.Screenshots / recordings
OpenCode Drive, opencode2 dark, new designs on. Before (
dev), then after.Command palette
Manage workspaces (delete confirm)
How did you verify your code works?
Captured before/after in OpenCode Drive;
typecheck:tscpasses; tests via CI.