feat(settings): show note full date
This commit is contained in:
@@ -591,6 +591,7 @@ fn render_nav_body(
|
||||
)
|
||||
.ui(ui)
|
||||
.map(RenderNavAction::SettingsAction),
|
||||
|
||||
Route::Reply(id) => {
|
||||
let txn = if let Ok(txn) = Transaction::new(ctx.ndb) {
|
||||
txn
|
||||
|
||||
@@ -270,6 +270,7 @@ impl<'a> SettingsView<'a> {
|
||||
});
|
||||
|
||||
let txn = Transaction::new(self.note_context.ndb).unwrap();
|
||||
|
||||
if let Some(note_id) = NoteId::from_bech(PREVIEW_NOTE_ID) {
|
||||
if let Ok(preview_note) =
|
||||
self.note_context.ndb.get_note_by_id(&txn, note_id.bytes())
|
||||
@@ -277,17 +278,17 @@ impl<'a> SettingsView<'a> {
|
||||
notedeck_ui::padding(8.0, ui, |ui| {
|
||||
if is_narrow(ui.ctx()) {
|
||||
ui.set_max_width(ui.available_width());
|
||||
}
|
||||
|
||||
NoteView::new(
|
||||
self.note_context,
|
||||
&preview_note,
|
||||
*self.note_options,
|
||||
self.jobs,
|
||||
)
|
||||
.actionbar(false)
|
||||
.options_button(false)
|
||||
.show(ui);
|
||||
NoteView::new(
|
||||
self.note_context,
|
||||
&preview_note,
|
||||
*self.note_options,
|
||||
self.jobs,
|
||||
)
|
||||
.actionbar(false)
|
||||
.options_button(false)
|
||||
.show(ui);
|
||||
}
|
||||
});
|
||||
ui.separator();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user