Fix TreeView nesting for ColumnLayout.

This commit is contained in:
2026-02-01 15:35:40 -05:00
parent db2f878018
commit 0fac2b71ab
3 changed files with 161 additions and 129 deletions

View File

@@ -43,11 +43,26 @@ SplitView {
SplitView.preferredWidth: 200
SplitView.maximumWidth: 250
StackLayout {
anchors.fill: parent
ColumnLayout {
spacing: 2
Rectangle {
width: navigationView.width
height: breadCrumb.height + 5
color: RustColors.explorer_text
Text {
id: breadCrumb
text: clideTreeView.rootDirectory
elide: Text.ElideLeft
horizontalAlignment: Text.AlignHCenter
}
}
ClideTreeView {
id: clideTreeView
onFileClicked: path => root.projectDir = path
width: navigationView.width
height: navigationView.height
// Path to the directory opened in the file explorer.
rootDirectory: root.projectDir