fix note content rects

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-03-07 18:03:34 -05:00
parent e7113b17a8
commit 8e0e42a1f3
4 changed files with 16 additions and 0 deletions

View File

@@ -145,6 +145,11 @@ impl<'a> NoteView<'a> {
self
}
pub fn is_preview(mut self, is_preview: bool) -> Self {
self.options_mut().set_is_preview(is_preview);
self
}
fn textmode_ui(&mut self, ui: &mut egui::Ui) -> egui::Response {
let note_key = self.note.key().expect("todo: implement non-db notes");
let txn = self.note.txn().expect("todo: implement non-db notes");