commit a408c96d914d212841079975686f52bddec730da
parent 54bf2a0767a8c8b4d34d839a62438310cee806d0
Author: William Casarin <jb55@jb55.com>
Date: Sun, 21 Apr 2024 15:02:41 -0700
ui: remove some old note ui comments
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 0 insertions(+), 19 deletions(-)
diff --git a/src/ui/note/mod.rs b/src/ui/note/mod.rs
@@ -93,15 +93,6 @@ impl<'a> Note<'a> {
ui.with_layout(egui::Layout::left_to_right(egui::Align::TOP), |ui| {
let profile = self.app.ndb.get_profile_by_pubkey(txn, self.note.pubkey());
- /*
- let mut collapse_state =
- egui::collapsing_header::CollapsingState::load_with_default_open(
- ui.ctx(),
- id,
- false,
- );
- */
-
crate::ui::padding(6.0, ui, |ui| {
match profile
.as_ref()
@@ -139,18 +130,8 @@ impl<'a> Note<'a> {
if self.options().has_actionbar() {
render_note_actionbar(ui);
}
-
- //let header_res = ui.horizontal(|ui| {});
});
});
-
- //let resp = ui.interact(inner_resp.response.rect, id, Sense::hover());
-
- //if resp.hovered() ^ collapse_state.is_open() {
- //info!("clicked {:?}, {}", self.note_key, collapse_state.is_open());
- //collapse_state.toggle(ui);
- //collapse_state.store(ui.ctx());
- //}
})
.response
}