1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

settings: wrap sidebar in flickable

fixes #581
This commit is contained in:
bbedward
2025-10-31 00:00:01 -04:00
parent 3c20e9e203
commit 505b6368e6

View File

@@ -58,8 +58,15 @@ Rectangle {
color: Theme.surfaceContainer
radius: Theme.cornerRadius
Column {
DankFlickable {
anchors.fill: parent
clip: true
contentHeight: sidebarColumn.implicitHeight
Column {
id: sidebarColumn
width: parent.width
anchors.leftMargin: Theme.spacingS
anchors.rightMargin: Theme.spacingS
anchors.bottomMargin: Theme.spacingS
@@ -93,7 +100,7 @@ Rectangle {
property bool isActive: sidebarContainer.currentIndex === index
width: parent.width - Theme.spacingS * 2
width: sidebarColumn.width - Theme.spacingS * 2
height: 44
radius: Theme.cornerRadius
color: isActive ? Theme.primary : tabMouseArea.containsMouse ? Theme.surfaceHover : "transparent"
@@ -147,3 +154,5 @@ Rectangle {
}
}
}