Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix styles
  • Loading branch information
huchenlei committed Oct 11, 2024
commit 8c3dd4d95555a93537f5fad2be666dff4bb8d36b
14 changes: 4 additions & 10 deletions src/components/sidebar/tabs/ModelLibrarySidebarTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<SidebarTabTemplate :title="$t('sideToolbar.modelLibrary')">
<template #header>
<SearchBox
class="model-lib-search-box mx-4 mt-4"
class="model-lib-search-box p-4 bg-[var(--p-tree-background)]"
v-model:modelValue="searchQuery"
:placeholder="$t('searchModels') + '...'"
/>
</template>
<template #body>
<TreeExplorer
class="model-lib-tree-explorer mt-1"
class="model-lib-tree-explorer py-0"
:roots="renderedRoot.children"
v-model:expandedKeys="expandedKeys"
@nodeClick="handleNodeClick"
Expand Down Expand Up @@ -209,15 +209,9 @@ watch(
)
</script>

<style>
.pi-fake-spacer {
<style scoped>
:deep(.pi-fake-spacer) {
height: 1px;
width: 16px;
}
</style>

<style scoped>
:deep(.comfy-vue-side-bar-body) {
background: var(--p-tree-background);
}
</style>
2 changes: 1 addition & 1 deletion src/components/sidebar/tabs/WorkflowsSidebarTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</template>
<template #header>
<SearchBox
class="workflows-search-box mx-4 my-4"
class="workflows-search-box p-4 bg-[var(--p-tree-background)]"
v-model:modelValue="searchQuery"
@search="handleSearch"
:placeholder="$t('searchWorkflows') + '...'"
Expand Down