make BluetoothPanel height adaptable

This commit is contained in:
notiant
2025-11-08 08:24:36 +01:00
committed by GitHub
parent 58dde183e0
commit 00df8dcd33
+2 -2
View File
@@ -18,7 +18,7 @@ SmartPanel {
panelContent: Rectangle {
color: Color.transparent
property real contentPreferredHeight: Math.min(preferredHeight, Math.max(280 * Style.uiScaleRatio, mainColumn.implicitHeight + Style.marginL * 2))
property real contentPreferredHeight: !(BluetoothService.adapter && BluetoothService.adapter.enabled) ? Math.min(preferredHeight, Math.max(280 * Style.uiScaleRatio, mainColumn.implicitHeight + Style.marginL * 2)) : (mainColumn.implicitHeight + Style.marginL * 2)
ColumnLayout {
id: mainColumn
@@ -246,4 +246,4 @@ SmartPanel {
}
}
}
}
}