feat: show horizontal scroll title

Show a horizontal scroll title, with arrows, if available
This commit is contained in:
Jack Wills
2025-08-18 14:02:00 +00:00
parent 7e892af838
commit 8939ac0345
6 changed files with 78 additions and 19 deletions
+3 -3
View File
@@ -638,9 +638,9 @@ impl AppData {
}
/// If scrolling horiztonally along the logs, display a counter of the position in the in the scroll, `x/y`
pub fn get_scroll_title(&self) -> Option<String> {
self.get_selected_container()
.and_then(|i| i.logs.get_scroll_title())
pub fn get_scroll_title(&mut self, width: u16) -> Option<String> {
self.get_mut_selected_container()
.and_then(|i| i.logs.get_scroll_title(width))
}
/// Increase the logs offset, basically moving an invisible cursor back