From 2f4a39f9ebe9180617ca77aa09a4b6c91c41dae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=E1=BB=B3nh=20Thi=E1=BB=87n=20L=E1=BB=99c?= Date: Mon, 18 May 2026 20:40:00 +0700 Subject: [PATCH] fix(settings): ensure plugin browser install button resizes correctly (#2431) Fixed a visual bug where the install button would overflow its container after a plugin was installed. This was caused by the width not re-evaluating correctly and StyledText's default elide/wrap properties interfering with implicit width calculations. --- quickshell/Modules/Settings/PluginBrowser.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quickshell/Modules/Settings/PluginBrowser.qml b/quickshell/Modules/Settings/PluginBrowser.qml index f5837e2f..ffba9215 100644 --- a/quickshell/Modules/Settings/PluginBrowser.qml +++ b/quickshell/Modules/Settings/PluginBrowser.qml @@ -570,7 +570,8 @@ FloatingWindow { return "available"; } - width: buttonState === "incompatible" ? incompatRow.implicitWidth + Theme.spacingM * 2 : 80 + implicitWidth: Math.max(80, incompatRow.implicitWidth + Theme.spacingM * 2) + width: implicitWidth height: 32 radius: Theme.cornerRadius anchors.verticalCenter: parent.verticalCenter @@ -638,6 +639,8 @@ FloatingWindow { } font.pixelSize: Theme.fontSizeSmall font.weight: Font.Medium + elide: Text.ElideNone + wrapMode: Text.NoWrap color: { switch (installButton.buttonState) { case "installed":