diff --git a/applets/batterymonitor/package/contents/ui/BadgeOverlay.qml b/applets/batterymonitor/package/contents/ui/BadgeOverlay.qml --- a/applets/batterymonitor/package/contents/ui/BadgeOverlay.qml +++ b/applets/batterymonitor/package/contents/ui/BadgeOverlay.qml @@ -33,7 +33,7 @@ bottom: parent.bottom } color: theme.backgroundColor - width: label.width + units.devicePixelRatio * 2 + width: Math.max(units.gridUnit, label.width + units.devicePixelRatio * 2) height: label.height radius: units.devicePixelRatio * 3 diff --git a/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml b/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml --- a/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml +++ b/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml @@ -71,7 +71,7 @@ BadgeOverlay { anchors.fill: batteryIcon - text: i18nc("battery percentage below battery icon", "%1%", percent) + text: batteryContainer.hasBattery ? i18nc("battery percentage below battery icon", "%1%", percent) : "-" icon: batteryIcon visible: plasmoid.configuration.showPercentage }