[applets/batterymonitor] PowerProfileItem: Fix inhibition hints overflow

Bottom-most `InhibitionHint`s were not constrained to the width of their
parent layout.
wilder-5.24
ivan tkachenko 4 years ago
parent 541e0b49c9
commit 8943d053e0
No known key found for this signature in database
GPG Key ID: 4D197017E61437CF
  1. 4
      applets/batterymonitor/package/contents/ui/PowerProfileItem.qml

@ -159,6 +159,8 @@ RowLayout {
}
InhibitionHint {
Layout.fillWidth: true
visible: root.activeHolds.length > 0 && root.activeProfileData !== undefined
text: root.activeProfileData !== undefined
? i18np("One application has requested activating %2:",
@ -171,6 +173,8 @@ RowLayout {
Repeater {
model: root.activeHolds
InhibitionHint {
Layout.fillWidth: true
x: PlasmaCore.Units.smallSpacing
iconSource: modelData.Icon
text: i18nc("%1 is the name of the application, %2 is the reason provided by it for activating performance mode",

Loading…
Cancel
Save