Skip to content

Commit

Permalink
Add image icon to details view
Browse files Browse the repository at this point in the history
  • Loading branch information
vv9k committed Dec 2, 2021
1 parent 6cfefa7 commit d94f6a4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/app/images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,15 @@ impl App {
if let Some(image) = &self.images.current_image {
let details = &image.details;

ui.add(
Label::new(name(&details.id, Some(details.repo_tags.as_ref())))
.heading()
.wrap(true)
.strong(),
);
ui.horizontal(|ui| {
ui.add(icon());
ui.add(
Label::new(name(&details.id, Some(details.repo_tags.as_ref())))
.heading()
.wrap(true)
.strong(),
);
});
ui.add_space(25.);

Grid::new("image_details").show(ui, |ui| {
Expand Down

0 comments on commit d94f6a4

Please sign in to comment.