Skip to content

[FEATURE]: TUI - Dialog boxes have inconsistent horizontal padding and need vertical centering improvements (UI) #12948

Closed

Description

@mynameistito

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem
The TUI dialog system currently exhibits visual inconsistencies:

  1. Inconsistent Padding: Base components use 4 units of horizontal padding, while custom implementations (Status, Help, Connect) use 2 units, creating a disjointed look.
  2. Vertical Off-Center: Dialogs are hardcoded to render at 25% from the top (height / 4), rather than being truly centered in the viewport.

Proposed Solution

  1. Standardize Padding:
    Update dialog-status.tsx, dialog-help.tsx, and dialog-provider.tsx to use paddingLeft={4} paddingRight={4} to match the base DialogSelect component.

  2. Fix Vertical Centering:
    In ui/dialog.tsx, remove the manual padding calculation and rely on flexbox for perfect centering.

    // ui/dialog.tsx
    // Remove: paddingTop={dimensions().height / 4}
    // Add:
    justifyContent="center"

This ensures all dialogs (/models, /agents, /status, etc.) share the same visual weight and alignment.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Feb 10, 2026
  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 10, 2026
  3. github-actions commented on Apr 12, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions