Skip to content

fix(tui): hide sidebar toggle button when sidebar is collapsed#1633

Open
MeGaurav4 wants to merge 1 commit into
XiaomiMiMo:mainfrom
MeGaurav4:fix/sidebar-toggle-columns-1626
Open

fix(tui): hide sidebar toggle button when sidebar is collapsed#1633
MeGaurav4 wants to merge 1 commit into
XiaomiMiMo:mainfrom
MeGaurav4:fix/sidebar-toggle-columns-1626

Conversation

@MeGaurav4

Copy link
Copy Markdown

Hides the TUI sidebar toggle button when the sidebar is collapsed so it no longer wastes terminal columns on narrow screens.

The toggle button rendered at a fixed 3-column width regardless of sidebar state, and contentWidth reserved a 4-column footprint even when the sidebar was hidden. Now the button is only rendered while the sidebar is visible, and contentWidth reserves space only when the sidebar is shown. Reopening still works via the sidebar.toggle keybind (Ctrl+X B).

Closes #1626

Verification

  • Run MiMoCode in a narrow terminal and press Ctrl+X B to hide the sidebar
  • Confirm the toggle button (>) is no longer visible and the content area uses the full width
  • Press Ctrl+X B again to show the sidebar and confirm the toggle button returns

The toggle button rendered at a fixed 3-column width even when the
sidebar was hidden, wasting space on narrow terminals. It is now
only rendered while the sidebar is visible, and contentWidth no
longer reserves its 4-column footprint when collapsed.

Closes XiaomiMiMo#1626
@MeGaurav4 MeGaurav4 force-pushed the fix/sidebar-toggle-columns-1626 branch from 3c785c2 to b98d2e3 Compare July 12, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar toggle button always visible — wastes 4 columns even when sidebar is hidden

1 participant