Fix sidebar scrollpanel style (#1283)

This commit is contained in:
Chenlei Hu
2024-10-24 00:27:54 +02:00
committed by GitHub
parent 269fc7c8c9
commit 7a3f20c57d
2 changed files with 5 additions and 9 deletions

View File

@@ -17,7 +17,10 @@
</div>
</nav>
</teleport>
<div v-if="selectedTab" class="sidebar-content-container">
<div
v-if="selectedTab"
class="sidebar-content-container h-full overflow-y-auto overflow-x-hidden"
>
<component v-if="selectedTab.type === 'vue'" :is="selectedTab.component" />
<div
v-else
@@ -115,9 +118,4 @@ const getTabTooltipSuffix = (tab: SidebarTabExtension) => {
align-self: flex-end;
margin-top: auto;
}
.sidebar-content-container {
height: 100%;
overflow-y: auto;
}
</style>

View File

@@ -18,9 +18,7 @@
</div>
<!-- h-0 to force scrollpanel to flex-grow -->
<ScrollPanel class="comfy-vue-side-bar-body flex-grow h-0">
<div class="h-full">
<slot name="body"></slot>
</div>
<slot name="body"></slot>
</ScrollPanel>
</div>
</template>