1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-13 14:36:32 -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"; return "available";
} }
width: buttonState === "incompatible" ? incompatRow.implicitWidth + Theme.spacingM * 2 : 80 implicitWidth: Math.max(80, incompatRow.implicitWidth + Theme.spacingM * 2)
width: implicitWidth
height: 32 height: 32
radius: Theme.cornerRadius radius: Theme.cornerRadius
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@@ -638,6 +639,8 @@ FloatingWindow {
} }
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium font.weight: Font.Medium
elide: Text.ElideNone
wrapMode: Text.NoWrap
color: { color: {
switch (installButton.buttonState) { switch (installButton.buttonState) {
case "installed": case "installed":