ui: Fix a note rendering issue

This commit is contained in:
Mike Dilger 2023-09-11 14:19:10 +12:00
parent cbf5b4deee
commit 0aecc1cbe6

View File

@ -1031,6 +1031,7 @@ fn render_repost(
content_margin_left: f32,
bottom_of_avatar: f32,
) {
if let Ok(repost_data) = repost_ref.try_borrow() {
let render_data = NoteRenderData {
height: 0.0,
@ -1045,6 +1046,8 @@ fn render_repost(
can_post: GLOBALS.signer.is_ready(),
};
let row_height = ui.cursor().height();
let push_top = {
let diff = bottom_of_avatar - ui.cursor().top();
if diff > 0.0 {
@ -1133,5 +1136,8 @@ fn render_repost(
);
});
});
ui.end_row();
ui.set_row_height(row_height);
}
}