Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
release type: patch
---

Fix inline menu option wrapping by using spaces instead of tabs.

When using inline menus (e.g., `app.confirm()`), options like "Yes" and "No" were wrapping to separate lines due to tab character separators expanding unpredictably in fixed-width table columns. This release replaces tab separators with two spaces for consistent, predictable spacing.

**Before:**
```
● Yes
○ No
```

**After:**
```
● Yes ○ No
```
2 changes: 1 addition & 1 deletion src/rich_toolkit/styles/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def render_menu(
selected_prefix = Text(element.current_selection_char + " ")
not_selected_prefix = Text(element.selection_char + " ")

separator = Text("\t" if element.inline else "\n")
separator = Text(" " if element.inline else "\n")

if done:
result_content = Text()
Expand Down