From 41b0a5cf1077b945be191a65e60d1d19ace9c21c Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Mon, 12 May 2025 08:46:00 -0300 Subject: [PATCH] agent: Add menu item in the panel menu for zooming in feature (#30554) Release Notes: - agent: Added a menu item in the panel's menu for the zooming in/out feature. --- crates/agent/src/agent_panel.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/agent/src/agent_panel.rs b/crates/agent/src/agent_panel.rs index eb1635bf4b..3af4af029e 100644 --- a/crates/agent/src/agent_panel.rs +++ b/crates/agent/src/agent_panel.rs @@ -1648,6 +1648,12 @@ impl AgentPanel { }), ); + let zoom_in_label = if self.is_zoomed(window, cx) { + "Zoom Out" + } else { + "Zoom In" + }; + let agent_extra_menu = PopoverMenu::new("agent-options-menu") .trigger_with_tooltip( IconButton::new("agent-options-menu", IconName::Ellipsis) @@ -1734,7 +1740,8 @@ impl AgentPanel { menu = menu .action("Rules…", Box::new(OpenRulesLibrary::default())) - .action("Settings", Box::new(OpenConfiguration)); + .action("Settings", Box::new(OpenConfiguration)) + .action(zoom_in_label, Box::new(ToggleZoom)); menu })) });