Skip to content

Commit 16a208f

Browse files
tjazerzenclaude
andcommitted
Fix log expand/collapse conflicting with text selection
Skip toggle when text is selected so marking text doesn't expand logs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ff0c9ae commit 16a208f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tui/components.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,9 @@ def on_mount(self) -> None:
469469
pass
470470

471471
def on_click(self) -> None:
472-
"""Toggle details visibility on click."""
472+
"""Toggle details visibility on click, unless text is selected."""
473+
if self.screen.get_selected_text():
474+
return
473475
try:
474476
details = self.query_one(f"#log-details-{id(self)}")
475477
indicator = self.query_one(".log-expand-indicator", Static)

0 commit comments

Comments
 (0)