note/ui: fix reply line when replying in narrow mode

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-08-03 16:54:04 -07:00
parent af2c556700
commit 2fb9470ee6

View File

@@ -37,6 +37,7 @@ use notedeck::{
get_current_default_msats, tr, ui::is_narrow, Accounts, AppContext, NoteAction, NoteContext, get_current_default_msats, tr, ui::is_narrow, Accounts, AppContext, NoteAction, NoteContext,
RelayAction, RelayAction,
}; };
use notedeck_ui::NoteOptions;
use tracing::error; use tracing::error;
/// The result of processing a nav response /// The result of processing a nav response
@@ -620,13 +621,16 @@ fn render_nav_body(
let action = { let action = {
let draft = app.drafts.reply_mut(note.id()); let draft = app.drafts.reply_mut(note.id());
let mut options = app.note_options;
options.set(NoteOptions::Wide, false);
let response = ui::PostReplyView::new( let response = ui::PostReplyView::new(
&mut note_context, &mut note_context,
poster, poster,
draft, draft,
&note, &note,
inner_rect, inner_rect,
app.note_options, options,
&mut app.jobs, &mut app.jobs,
col, col,
) )