mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 08:21:47 +00:00
ui: Fix a note rendering issue
This commit is contained in:
parent
cbf5b4deee
commit
0aecc1cbe6
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user