ui: keep original design on non-narrow

Changed my mind

This reverts commit 6e81b98d2f.
This reverts commit 217f1e45da.
This commit is contained in:
William Casarin
2025-07-29 13:23:45 -07:00
parent 09e608ca75
commit f57d582307
2 changed files with 4 additions and 1 deletions

View File

@@ -364,6 +364,10 @@ fn render_damus(
app_ctx: &mut AppContext<'_>, app_ctx: &mut AppContext<'_>,
ui: &mut egui::Ui, ui: &mut egui::Ui,
) -> Option<AppAction> { ) -> Option<AppAction> {
damus
.note_options
.set(NoteOptions::Wide, is_narrow(ui.ctx()));
let app_action = if notedeck::ui::is_narrow(ui.ctx()) { let app_action = if notedeck::ui::is_narrow(ui.ctx()) {
render_damus_mobile(damus, app_ctx, ui) render_damus_mobile(damus, app_ctx, ui)
} else { } else {

View File

@@ -34,7 +34,6 @@ impl Default for NoteOptions {
| NoteOptions::HasNotePreviews | NoteOptions::HasNotePreviews
| NoteOptions::ActionBar | NoteOptions::ActionBar
| NoteOptions::Truncate | NoteOptions::Truncate
| NoteOptions::Wide
} }
} }