From 8943d053e02442d97aeb52b51810624d601fefee Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Thu, 16 Dec 2021 16:29:23 +0300 Subject: [PATCH] [applets/batterymonitor] PowerProfileItem: Fix inhibition hints overflow Bottom-most `InhibitionHint`s were not constrained to the width of their parent layout. --- .../batterymonitor/package/contents/ui/PowerProfileItem.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applets/batterymonitor/package/contents/ui/PowerProfileItem.qml b/applets/batterymonitor/package/contents/ui/PowerProfileItem.qml index 8542e21ed..aaa1babce 100644 --- a/applets/batterymonitor/package/contents/ui/PowerProfileItem.qml +++ b/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",