mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix pr comments
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user