From 24f086eb210c43d020ed68c523e14a8825763d6b Mon Sep 17 00:00:00 2001 From: IsaiahWitzke Date: Wed, 20 May 2026 20:15:02 +0000 Subject: [PATCH] Remove managed auto-reload tooltip Co-Authored-By: Oz --- .../billing_and_usage_page_v2.rs | 34 +++++-------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/app/src/settings_view/billing_and_usage_page_v2.rs b/app/src/settings_view/billing_and_usage_page_v2.rs index 4155ef5ee0..9fe45d18f0 100644 --- a/app/src/settings_view/billing_and_usage_page_v2.rs +++ b/app/src/settings_view/billing_and_usage_page_v2.rs @@ -79,7 +79,6 @@ const ADDON_CREDITS_DESCRIPTION: &str = "Add-on credits are purchased in prepaid const ADDITIONAL_ADDON_CREDITS_DESCRIPTION_FOR_TEAM: &str = "Purchased add-on credits are added to your personal balance."; const MANAGED_AUTO_RELOAD_HEADER: &str = "Auto-reload is enabled"; -const MANAGED_AUTO_RELOAD_TOOLTIP: &str = "Managed by your admin"; const ADDON_CREDITS_DELINQUENT_WARNING_STRING: &str = "Restricted due to billing issue. Update your payment method to purchase add-on credits."; @@ -1311,31 +1310,14 @@ impl BillingAndUsagePageV2View { ) -> Box { let theme = appearance.theme(); let bg = theme.background(); - let auto_reload_info_icon = render_info_icon( - appearance, - AdditionalInfo:: { - mouse_state: self.buy_credits_mouse_states.auto_reload_info.clone(), - on_click_action: None, - secondary_text: None, - tooltip_override_text: Some(MANAGED_AUTO_RELOAD_TOOLTIP.to_string()), - }, - ); - let auto_reload_header = Flex::row() - .with_cross_axis_alignment(CrossAxisAlignment::Center) - .with_children([ - Text::new_inline( - MANAGED_AUTO_RELOAD_HEADER, - appearance.ui_font_family(), - HEADER_FONT_SIZE, - ) - .with_color(theme.foreground().into()) - .with_style(Properties::default().weight(Weight::Medium)) - .finish(), - Container::new(auto_reload_info_icon) - .with_margin_left(4.) - .finish(), - ]) - .finish(); + let auto_reload_header = Text::new_inline( + MANAGED_AUTO_RELOAD_HEADER, + appearance.ui_font_family(), + HEADER_FONT_SIZE, + ) + .with_color(theme.foreground().into()) + .with_style(Properties::default().weight(Weight::Medium)) + .finish(); let auto_reload_description = appearance .ui_builder() .paragraph(description_text)