commit f7c1429dd02652b0b792f8082818ccfc8684c37e
parent 2fb845a261971a646d0280b6e366a262b42cb3aa
Author: William Casarin <jb55@jb55.com>
Date: Thu, 6 Jul 2023 10:45:26 -0700
Revert "text: make content selectable"
Can't drag as easy with selectable timeline text
This reverts commit f5b7b0b1b8bd59301c8d1836214781e401ec5b77.
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/app.rs b/src/app.rs
@@ -334,7 +334,7 @@ fn render_events(ui: &mut egui::Ui, damus: &mut Damus) {
ui.with_layout(egui::Layout::top_down(egui::Align::LEFT), |ui| {
render_username(ui, &damus.contacts, &ev.pubkey);
- selectable_text(ui, &ev.content);
+ ui.label(&ev.content);
})
});
@@ -342,10 +342,6 @@ fn render_events(ui: &mut egui::Ui, damus: &mut Damus) {
}
}
-fn selectable_text(ui: &mut egui::Ui, mut text: &str) {
- ui.add(egui::TextEdit::multiline(&mut text));
-}
-
fn timeline_view(ui: &mut egui::Ui, app: &mut Damus) {
ui.heading("Timeline");