[backport cloud/1.32] Style: Fix the filter/search/sort controls on the Template Select Modal (#6868)

Backport of #6835 to `cloud/1.32`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6868-backport-cloud-1-32-Style-Fix-the-filter-search-sort-controls-on-the-Template-Select-M-2b46d73d3650811584b1e0c9ea2cf044)
by [Unito](https://www.unito.io)

Co-authored-by: Alexander Brown <drjkl@comfy.org>
This commit is contained in:
Comfy Org PR Bot
2025-11-24 05:58:11 +09:00
committed by GitHub
parent 3d2be8f259
commit 75e448085b
4 changed files with 9 additions and 9 deletions

View File

@@ -92,7 +92,7 @@
class="w-62.5" class="w-62.5"
> >
<template #icon> <template #icon>
<i class="icon-[lucide--arrow-up-down]" /> <i class="icon-[lucide--arrow-up-down] text-muted-foreground" />
</template> </template>
</SingleSelect> </SingleSelect>
</div> </div>

View File

@@ -17,7 +17,7 @@
root: ({ props }: MultiSelectPassThroughMethodOptions) => ({ root: ({ props }: MultiSelectPassThroughMethodOptions) => ({
class: cn( class: cn(
'h-10 relative inline-flex cursor-pointer select-none', 'h-10 relative inline-flex cursor-pointer select-none',
'rounded-lg bg-base-background text-base-foreground', 'rounded-lg bg-secondary-background text-base-foreground',
'transition-all duration-200 ease-in-out', 'transition-all duration-200 ease-in-out',
'border-[2.5px] border-solid', 'border-[2.5px] border-solid',
selectedCount > 0 selectedCount > 0
@@ -127,7 +127,7 @@
<!-- Trigger value (keep text scale identical) --> <!-- Trigger value (keep text scale identical) -->
<template #value> <template #value>
<span class="text-sm text-muted-foreground"> <span class="text-sm">
{{ label }} {{ label }}
</span> </span>
<span <span
@@ -140,7 +140,7 @@
<!-- Chevron size identical to current --> <!-- Chevron size identical to current -->
<template #dropdownicon> <template #dropdownicon>
<i class="icon-[lucide--chevron-down] text-lg text-neutral-400" /> <i class="icon-[lucide--chevron-down] text-muted-foreground" />
</template> </template>
<!-- Custom option row: square checkbox + label (unchanged layout/colors) --> <!-- Custom option row: square checkbox + label (unchanged layout/colors) -->

View File

@@ -1,6 +1,6 @@
<template> <template>
<div :class="wrapperStyle" @click="focusInput"> <div :class="wrapperStyle" @click="focusInput">
<i class="icon-[lucide--search] text-muted" /> <i class="icon-[lucide--search] text-muted-foreground" />
<InputText <InputText
ref="input" ref="input"
v-model="internalSearchQuery" v-model="internalSearchQuery"
@@ -73,7 +73,7 @@ onMounted(() => autofocus && focusInput())
const wrapperStyle = computed(() => { const wrapperStyle = computed(() => {
const baseClasses = const baseClasses =
'relative flex w-full items-center gap-2 bg-base-background cursor-text' 'relative flex w-full items-center gap-2 bg-secondary-background cursor-text'
if (showBorder) { if (showBorder) {
return cn( return cn(

View File

@@ -20,7 +20,7 @@
'h-10 relative inline-flex cursor-pointer select-none items-center', 'h-10 relative inline-flex cursor-pointer select-none items-center',
// trigger surface // trigger surface
'rounded-lg', 'rounded-lg',
'bg-base-background text-base-foreground', 'bg-secondary-background text-base-foreground',
'border-[2.5px] border-solid border-transparent', 'border-[2.5px] border-solid border-transparent',
'transition-all duration-200 ease-in-out', 'transition-all duration-200 ease-in-out',
'focus-within:border-node-component-border', 'focus-within:border-node-component-border',
@@ -84,7 +84,7 @@
> >
<!-- Trigger value --> <!-- Trigger value -->
<template #value="slotProps"> <template #value="slotProps">
<div class="flex items-center gap-2 text-sm text-neutral-500"> <div class="flex items-center gap-2 text-sm">
<slot name="icon" /> <slot name="icon" />
<span <span
v-if="slotProps.value !== null && slotProps.value !== undefined" v-if="slotProps.value !== null && slotProps.value !== undefined"
@@ -100,7 +100,7 @@
<!-- Trigger caret --> <!-- Trigger caret -->
<template #dropdownicon> <template #dropdownicon>
<i class="icon-[lucide--chevron-down] text-base text-neutral-500" /> <i class="icon-[lucide--chevron-down] text-muted-foreground" />
</template> </template>
<!-- Option row --> <!-- Option row -->