1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-08 04:09:15 -04:00

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.
This commit is contained in:
Huỳnh Thiện Lộc
2026-05-18 20:40:00 +07:00
committed by GitHub
parent 5e558660c3
commit 2f4a39f9eb
@@ -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":