[PR #8068] fix(tui): prevent layout jump when toggling tips visibility #12609

Closed
opened 2026-02-16 18:17:30 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8068

State: closed
Merged: Yes


Summary

  • Use balanced spacers (height=3) above and below the centered content to reserve space for tips
  • Tips container always occupies the same space regardless of visibility
  • Eliminates the layout jump when showing/hiding tips on the home screen

Before

https://github.com/user-attachments/assets/a0faeff8-667b-4c0c-ac1a-e38ebdce2c28
When toggling tips, the prompt box would shift up/down as the centered content recalculated.

After

https://github.com/user-attachments/assets/c03d03aa-a66c-4a3f-b85f-3a278c93dab5
Prompt box stays in place because the space for tips is always reserved with a matching spacer above for balance.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8068 **State:** closed **Merged:** Yes --- ## Summary - Use balanced spacers (height=3) above and below the centered content to reserve space for tips - Tips container always occupies the same space regardless of visibility - Eliminates the layout jump when showing/hiding tips on the home screen ## Before https://github.com/user-attachments/assets/a0faeff8-667b-4c0c-ac1a-e38ebdce2c28 When toggling tips, the prompt box would shift up/down as the centered content recalculated. ## After https://github.com/user-attachments/assets/c03d03aa-a66c-4a3f-b85f-3a278c93dab5 Prompt box stays in place because the space for tips is always reserved with a matching spacer above for balance.
yindo added the pull-request label 2026-02-16 18:17:30 -05:00
yindo closed this issue 2026-02-16 18:17:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12609