Skip to content

Commit 993dea5

Browse files
committed
Move the image_carousel for an embedded note into the response
1 parent 8755240 commit 993dea5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/ui/note/contents.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ fn render_note_contents(
211211
}
212212
}
213213
}
214+
215+
if !images.is_empty() && !options.has_textmode() {
216+
ui.add_space(2.0);
217+
let carousel_id = egui::Id::new(("carousel", note.key().expect("expected tx note")));
218+
image_carousel(ui, img_cache, images, carousel_id);
219+
ui.add_space(2.0);
220+
}
214221
});
215222

216223
let note_action = if let Some((id, block_str)) = inline_note {
@@ -219,13 +226,6 @@ fn render_note_contents(
219226
None
220227
};
221228

222-
if !images.is_empty() && !options.has_textmode() {
223-
ui.add_space(2.0);
224-
let carousel_id = egui::Id::new(("carousel", note.key().expect("expected tx note")));
225-
image_carousel(ui, img_cache, images, carousel_id);
226-
ui.add_space(2.0);
227-
}
228-
229229
NoteResponse::new(response.response).with_action(note_action)
230230
}
231231

0 commit comments

Comments
 (0)