Crosspost targets: one row when they fit, stacked otherwise

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Phil
2026-10-31 20:55:46 -06:00
co-authored by Claude Opus 5.5
parent dfc9b753ac
commit c78ade3900
3 changed files with 59 additions and 6 deletions
+3 -2
View File
@@ -792,10 +792,11 @@ impl App {
return;
}
match key.code {
KeyCode::Up | KeyCode::Char('k') => {
// Up/Down for the stacked layout, Left/Right for the single row.
KeyCode::Up | KeyCode::Left | KeyCode::Char('k' | 'h') => {
self.target_cursor = self.target_cursor.saturating_sub(1)
}
KeyCode::Down | KeyCode::Char('j') => {
KeyCode::Down | KeyCode::Right | KeyCode::Char('j' | 'l') => {
self.target_cursor = (self.target_cursor + 1).min(n - 1)
}
KeyCode::Char(' ') | KeyCode::Enter => {