fix note context menu placement inside rect

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-03-05 17:20:08 -05:00
parent e2be2ddd58
commit e7113b17a8
3 changed files with 24 additions and 48 deletions

View File

@@ -51,7 +51,7 @@ impl<'a> QuoteRepostView<'a> {
let id = self.id();
let quoting_note_id = self.quoting_note.id();
ui::PostView::new(
let post_resp = ui::PostView::new(
self.ndb,
self.draft,
PostType::Quote(NoteId::new(quoting_note_id.to_owned())),
@@ -62,7 +62,8 @@ impl<'a> QuoteRepostView<'a> {
self.note_options,
)
.id_source(id)
.ui(self.quoting_note.txn().unwrap(), ui)
.ui(self.quoting_note.txn().unwrap(), ui);
post_resp
}
pub fn id_source(mut self, id: egui::Id) -> Self {