ui: add banners to profile previews
profile previews still need lots of work, but this was a challenge to get an aspectRatio: fill mechanism for images which the banner takes advantage of. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
1 parent
2f6f92e62c
commit
2edba9942c
2 files changed
+67
-9
No files matched your search
@@ -139,6 +139,7 @@ fn render_note_contents(
|
||||
if let Some(rec) = profile.as_ref() {
|
||||
resp.on_hover_ui_at_pointer(|ui| {
|
||||
egui::Frame::default().show(ui, |ui| {
|
||||
ui.set_max_width(300.0);
|
||||
ui.add(ui::ProfilePreview::new(rec));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user