2 Commits

Author SHA1 Message Date
9a54f5c6bd Bump version to 0.2.2
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 00:27:40 +00:00
732001771e Fix artist list scrolling to bottom on click
Restore saved scroll offset into ListState before select() so ratatui
preserves the current viewport position instead of scrolling from zero.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 00:25:53 +00:00
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "ferrosonic" name = "ferrosonic"
version = "0.2.1" version = "0.2.2"
edition = "2021" edition = "2021"
description = "A terminal-based Subsonic music client with bit-perfect audio playback" description = "A terminal-based Subsonic music client with bit-perfect audio playback"
license = "MIT" license = "MIT"

View File

@@ -156,6 +156,7 @@ fn render_tree(frame: &mut Frame, area: Rect, state: &mut AppState, colors: &The
} }
let mut list_state = ListState::default(); let mut list_state = ListState::default();
*list_state.offset_mut() = state.artists.tree_scroll_offset;
if focused { if focused {
list_state.select(state.artists.selected_index); list_state.select(state.artists.selected_index);
} }
@@ -267,6 +268,7 @@ fn render_songs(frame: &mut Frame, area: Rect, state: &mut AppState, colors: &Th
} }
let mut list_state = ListState::default(); let mut list_state = ListState::default();
*list_state.offset_mut() = state.artists.song_scroll_offset;
if focused { if focused {
list_state.select(artists.selected_song); list_state.select(artists.selected_song);
} }