Skip to content

Commit 2ad53ef

Browse files
committed
refactor: 更改布局
1 parent fd71c49 commit 2ad53ef

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/BootstrapBlazor/Components/TreeView/TreeView.razor.scss

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,21 @@
1616
--bb-tree-item-bg-radius: var(--bs-border-radius);
1717
position: relative;
1818
height: 100%;
19+
display: flex;
20+
flex-direction: column;
1921

2022
.tree-search {
21-
padding: var(--bb-tree-padding);
2223
padding-bottom: .5rem;
2324
background-color: var(--bs-body-bg);
2425
}
2526

26-
&.is-fixed-search .tree-search {
27-
position: sticky;
28-
top: 0;
29-
z-index: 5;
30-
}
31-
3227
.tree-root {
3328
padding: var(--bb-tree-padding);
3429
margin: var(--bb-tree-margin);
3530
position: relative;
31+
flex: 1;
32+
min-height: 0;
33+
height: 1%;
3634
}
3735

3836
.tree-content {

0 commit comments

Comments
 (0)