mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-07 19:59:14 -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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user