ui: keep original design on non-narrow
Changed my mind This reverts commit6e81b98d2f. This reverts commit217f1e45da.
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ impl Default for NoteOptions {
|
|||||||
| NoteOptions::HasNotePreviews
|
| NoteOptions::HasNotePreviews
|
||||||
| NoteOptions::ActionBar
|
| NoteOptions::ActionBar
|
||||||
| NoteOptions::Truncate
|
| NoteOptions::Truncate
|
||||||
| NoteOptions::Wide
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user