notedeck

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

commit 015d502b981d93330d93f39c3f709b2a451ebcf8
parent eb9d1adc01f68cc31f363001b184785537195ed5
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 26 Jan 2026 13:23:15 -0800

messages: make text selectable

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

Diffstat:
Mcrates/notedeck_messages/src/ui/convo.rs | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/crates/notedeck_messages/src/ui/convo.rs b/crates/notedeck_messages/src/ui/convo.rs @@ -423,7 +423,10 @@ fn self_chat_bubble( ui.with_layout(Layout::right_to_left(Align::Min), |ui| { chat_bubble(ui, msg_type, true, bubble_fill, |ui| { ui.with_layout(Layout::top_down(Align::Max), |ui| { - ui.label(RichText::new(message).color(ui.visuals().text_color())); + ui.add( + egui::Label::new(RichText::new(message).color(ui.visuals().text_color())) + .selectable(true), + ); if msg_type == MessageType::Standalone || msg_type == MessageType::LastInSeries { let timestamp_label = @@ -466,7 +469,9 @@ fn other_chat_bubble( ui.with_layout( Layout::left_to_right(Align::Max).with_main_wrap(true), |ui| { - ui.label(RichText::new(message).color(text_color)); + ui.add( + egui::Label::new(RichText::new(message).color(text_color)).selectable(true), + ); if msg_type == MessageType::Standalone || msg_type == MessageType::LastInSeries { ui.add_space(6.0);