note/ui: fix reply line when replying in narrow mode
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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,
|
||||||
¬e,
|
¬e,
|
||||||
inner_rect,
|
inner_rect,
|
||||||
app.note_options,
|
options,
|
||||||
&mut app.jobs,
|
&mut app.jobs,
|
||||||
col,
|
col,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user