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:
@@ -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":
|
||||||
|
|||||||
Reference in New Issue
Block a user