From 5a3b340ddb6bb8bef4470b758ce13f0b623e08f8 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 12 Mar 2026 15:51:10 +0000 Subject: [PATCH] Fix clipping of network and battery icons in the applet button. The applet button was clipping its contents because `button_from_element` defaults to a fixed width matching a single symbolic icon size. This was updated to set the width to `cosmic::iced::Length::Shrink` so it expands to fit the dynamic row of icons (volume, network, and battery). Co-authored-by: SreevikramR <48626706+SreevikramR@users.noreply.github.com> --- src/app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.rs b/src/app.rs index be94272..32de8f4 100644 --- a/src/app.rs +++ b/src/app.rs @@ -403,6 +403,7 @@ impl cosmic::Application for AppModel { self.core .applet .button_from_element(icons_row, true) + .width(cosmic::iced::Length::Shrink) .on_press(Message::TogglePopup) .into() }