Add horizontal scroll and enforce white text in console and hex views

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-06-12 20:34:32 +08:00
parent b3acb02d52
commit 2efbc9c284
2 changed files with 4 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ pub fn render(
) -> usize {
let line_count = buf.len();
let row_height = ui.text_style_height(&TextStyle::Monospace);
ScrollArea::vertical().stick_to_bottom(true).show_rows(
ScrollArea::both().stick_to_bottom(true).show_rows(
ui,
row_height,
line_count,
@@ -74,6 +74,7 @@ fn monospace_format(style: &egui::Style) -> TextFormat {
.get(&TextStyle::Monospace)
.cloned()
.unwrap_or_default(),
color: Color32::WHITE,
..Default::default()
}
}

View File

@@ -17,7 +17,7 @@ pub fn render(
return 0;
}
let row_height = ui.text_style_height(&TextStyle::Monospace);
ScrollArea::vertical().stick_to_bottom(true).show_rows(
ScrollArea::both().stick_to_bottom(true).show_rows(
ui,
row_height,
line_count,
@@ -78,6 +78,7 @@ fn monospace_format(style: &egui::Style) -> TextFormat {
.get(&TextStyle::Monospace)
.cloned()
.unwrap_or_default(),
color: Color32::WHITE,
..Default::default()
}
}