notedeck

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

commit f592015c0c8eee2f73f166cd0c4c9ce3a2863300
parent 1ab4eeb48c1fd5e7b07e6549a6262c9d82ce6e35
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 18 Jul 2025 14:55:36 -0700

notebook: fix heights of nodes

some nodes can overflow their contents, so let's use a scroll view to
fix

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_notebook/src/lib.rs | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/crates/notedeck_notebook/src/lib.rs b/crates/notedeck_notebook/src/lib.rs @@ -48,8 +48,10 @@ fn node_ui(ui: &mut egui::Ui, node: &Node) -> egui::Response { fn text_node_ui(ui: &mut egui::Ui, node: &TextNode) -> egui::Response { node_box_ui(ui, node.node(), |ui| { - ui.with_layout(egui::Layout::left_to_right(Align::Min), |ui| { - ui.add(Label::new(node.text()).wrap_mode(TextWrapMode::Wrap)) + egui::ScrollArea::vertical().show(ui, |ui| { + ui.with_layout(egui::Layout::left_to_right(Align::Min), |ui| { + ui.add(Label::new(node.text()).wrap_mode(TextWrapMode::Wrap)) + }); }); }) }