fix pr comments

This commit is contained in:
pythongosssss
2026-04-07 02:56:27 -07:00
parent af77920f8f
commit 5c3de0081b
3 changed files with 6 additions and 6 deletions

View File

@@ -166,6 +166,8 @@ function categoryBtnClass(id: string) {
}
const expandedCategory = ref(selectedCategory.value)
// Skips the watch when selectCategory/collapseCategory set selectedCategory,
// so their expandedCategory toggle isn't immediately undone.
let lastEmittedCategory = ''
watch(selectedCategory, (val) => {

View File

@@ -79,7 +79,7 @@
:current-query="searchQuery"
show-description
:show-source-badge="rootFilter !== 'essentials'"
:hide-bookmark-icon="effectiveCategory === 'favorites'"
:hide-bookmark-icon="selectedCategory === 'favorites'"
/>
</div>
<div
@@ -243,10 +243,8 @@ const searchResults = computed(() => {
})
})
const effectiveCategory = computed(() => selectedCategory.value)
const sidebarCategory = computed({
get: () => effectiveCategory.value,
get: () => selectedCategory.value,
set: (category: string) => {
selectedCategory.value = category
}
@@ -286,7 +284,7 @@ function getCategoryResults(baseNodes: ComfyNodeDefImpl[], category: string) {
const displayedResults = computed<ComfyNodeDefImpl[]>(() => {
const baseNodes = rootFilteredNodeDefs.value
const category = effectiveCategory.value
const category = selectedCategory.value
if (category === DEFAULT_CATEGORY) return getMostRelevantResults(baseNodes)

View File

@@ -32,7 +32,7 @@
v-else-if="showSourceBadge && isCustom"
:class="badgePillClass"
>
<span class="truncate text-[10px]">
<span class="truncate text-2xs">
{{ nodeDef.nodeSource.displayText }}
</span>
</span>