notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit c4b335e9401327527b83bc85b02574e870b99af7
parent 8d0b9e02d3a2f1f7f37a1414a201d0da24589dfb
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 17 Feb 2026 14:47:57 -0800

use horizontal-only scroll for diff view

Keep full diff height visible, only scroll horizontally for long lines.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Diffstat:
Mcrates/notedeck_dave/src/ui/diff.rs | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/crates/notedeck_dave/src/ui/diff.rs b/crates/notedeck_dave/src/ui/diff.rs @@ -13,10 +13,7 @@ pub fn file_update_ui(update: &FileUpdate, ui: &mut Ui) { .inner_margin(8.0) .corner_radius(4.0) .show(ui, |ui| { - let max_height = ui.available_height().min(400.0); - egui::ScrollArea::both() - .max_height(max_height) - .auto_shrink([false, true]) + egui::ScrollArea::horizontal() .show(ui, |ui| { render_diff_lines(update.diff_lines(), &update.update_type, ui); });