widget-settings: increased min dialog width, help with the battery settings.

This commit is contained in:
Lemmy
2026-01-27 22:21:58 -05:00
parent 5af61ed78d
commit ed0ce655ad
2 changed files with 5 additions and 3 deletions
@@ -20,7 +20,7 @@ Popup {
readonly property real maxHeight: screen ? screen.height * 0.9 : 800
width: Math.max(content.implicitWidth + padding * 2, 500)
width: Math.max(content.implicitWidth + padding * 2, 640)
height: Math.min(content.implicitHeight + padding * 2, maxHeight)
padding: Style.marginXL
modal: true
@@ -61,7 +61,7 @@ ColumnLayout {
Layout.fillWidth: true
label: I18n.tr("bar.battery.device-label")
description: I18n.tr("bar.battery.device-description")
minimumWidth: 134
minimumWidth: 200
model: root.deviceModel
currentKey: root.valueDeviceNativePath
onSelected: key => {
@@ -81,15 +81,17 @@ ColumnLayout {
NIconButton {
icon: "refresh"
// TODO i18n
tooltipText: "Refresh device list"
onClicked: deviceModel = BatteryService.getDeviceOptionsModel()
}
}
NComboBox {
Layout.fillWidth: true
label: I18n.tr("bar.volume.display-mode-label")
description: I18n.tr("bar.volume.display-mode-description")
minimumWidth: 134
minimumWidth: 240
model: [
{
"key": "onhover",