controlcenter: correcting containers (bluetooth pane)

This commit is contained in:
ATMDA 2025-11-16 23:26:31 -05:00
parent 9f8f8ac731
commit ff03760675

View file

@ -12,25 +12,29 @@ import Quickshell.Bluetooth
import QtQuick import QtQuick
import QtQuick.Layouts import QtQuick.Layouts
Item { StyledFlickable {
id: root id: root
required property Session session required property Session session
readonly property BluetoothDevice device: session.bt.active readonly property BluetoothDevice device: session.bt.active
StyledFlickable { anchors.fill: parent
anchors.fill: parent
flickableDirection: Flickable.VerticalFlick flickableDirection: Flickable.VerticalFlick
clip: true contentHeight: layoutWrapper.height
contentHeight: layout.height
ColumnLayout { Item {
id: layout id: layoutWrapper
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
spacing: Appearance.spacing.normal implicitHeight: layout.height
ColumnLayout {
id: layout
anchors.fill: parent
spacing: Appearance.spacing.normal
MaterialIcon { MaterialIcon {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
@ -416,8 +420,8 @@ Item {
} }
} }
} }
}
} }
}
ColumnLayout { ColumnLayout {
anchors.right: fabRoot.right anchors.right: fabRoot.right
@ -563,11 +567,11 @@ Item {
Item { Item {
id: fabRoot id: fabRoot
anchors.right: parent.right x: root.contentX + root.width - width
anchors.bottom: parent.bottom y: root.contentY + root.height - height
width: 64
implicitWidth: 64 height: 64
implicitHeight: 64 z: 10000
StyledRect { StyledRect {
id: fabBg id: fabBg