From 973bb05c664f202edaa5bb5e7609cce573c2f432 Mon Sep 17 00:00:00 2001 From: mostafaei2002 Date: Thu, 6 Jun 2024 17:45:28 +0330 Subject: [PATCH] fix: hide logo on advanced mode not enough height --- src/app/panels/middle/xvb.rs | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/app/panels/middle/xvb.rs b/src/app/panels/middle/xvb.rs index fe888ff..4c158c5 100644 --- a/src/app/panels/middle/xvb.rs +++ b/src/app/panels/middle/xvb.rs @@ -33,21 +33,23 @@ impl crate::disk::state::Xvb { api: &Arc>, private_stats: bool, ) { - let website_height = size.y / 10.0; - let width = size.x; - let height = size.y; - let space_h = height / 48.0; - // logo and website link - 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); - }); + if self.simple { + let website_height = size.y / 10.0; + let width = size.x; + let height = size.y; + let space_h = height / 48.0; + // logo and website link + 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 debug!("XvB Tab | Rendering [Console]"); ui.group(|ui| {