Skip to content

Commit d53770a

Browse files
committed
file-tree: fix file-tree panel height & scrolling
1 parent e66eb58 commit d53770a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

os-checks/components/FileTree2.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ const heightCodePanel = computed(() => {
101101
@click="() => displayFilters = !displayFilters" />
102102
</div>
103103
</div>
104-
<div v-if="count">
104+
<div v-if="count" style="padding-right: 0.6rem;">
105105
<b style="margin-right: 10px;">Total Count:</b>
106106
<Button class="btn" severity="danger" @click="resetSelectKey"> {{ count }} </Button>
107107
</div>
108108
</div>
109109

110-
<ScrollPanel class="fileViewMenu">
110+
<ScrollPanel class="fileViewMenu" :style="{ height: heightCodePanel }">
111111
<PackageFileMenu :nodes="nodes" :selectedKey="selectedKey" @update:selectedKey="selectedKey = $event" />
112112
</ScrollPanel>
113113
</div>
@@ -152,7 +152,7 @@ const heightCodePanel = computed(() => {
152152
.fileViewNavi {
153153
flex: 0 0 25%;
154154
padding-left: 0.25rem;
155-
/* padding-right: 0.5rem; */
155+
padding-right: 0.5rem;
156156
/* flex-grow, flex-shrink, flex-basis */
157157
/* 左边div不扩展也不收缩,基础宽度为10% */
158158
}

0 commit comments

Comments
 (0)