diff --git a/.gitignore b/.gitignore index 92b2133..0d7463a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /target /feature .DS_Store -rustc-ice-* \ No newline at end of file +rustc-ice-* diff --git a/src/app/panels/middle/xvb.rs b/src/app/panels/middle/xvb.rs index 1d9aa24..3339c7a 100644 --- a/src/app/panels/middle/xvb.rs +++ b/src/app/panels/middle/xvb.rs @@ -44,16 +44,15 @@ impl crate::disk::state::Xvb { let space_h = height / 48.0; // logo and website link - ui.horizontal(|ui| { - ui.add_space(width / 2.0 - 150.0); - ui.add_sized( - [100.0, website_height], - Image::from_bytes("bytes:/xvb.png", BYTES_XVB), - ); - ui.style_mut().override_text_style = Some(TextStyle::Heading); - ui.add_space(space_h); - ui.hyperlink_to("XMRvsBeast", XVB_URL); - ui.add_space(space_h); + ui.vertical_centered(|ui| { + ui.add_sized( + [width, website_height], + Image::from_bytes("bytes:/xvb.png", BYTES_XVB), + ); + ui.style_mut().override_text_style = Some(TextStyle::Heading); + ui.add_space(space_h); + ui.hyperlink_to("XMRvsBeast", XVB_URL); + ui.add_space(space_h); }); // console output for log