Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions src/components/common/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
:placeholder
:autofocus
unstyled
class="absolute inset-0 size-full pl-11 border-none outline-none bg-transparent text-sm"
:class="
cn(
'absolute inset-0 size-full border-none outline-none bg-transparent text-sm',
isLarge ? 'pl-11' : 'pl-8'
)
"
:aria-label="placeholder"
/>
<Button
Expand All @@ -29,7 +34,7 @@
<InputIcon v-if="!modelValue" :class="icon" />
<Button
v-if="modelValue"
class="clear-button absolute left-0"
:class="cn('clear-button absolute', isLarge ? 'left-2' : 'left-0')"
variant="textonly"
size="icon"
@click="modelValue = ''"
Expand Down Expand Up @@ -83,6 +88,8 @@ const {
class?: string
}>()

const isLarge = computed(() => size === 'lg')

const emit = defineEmits<{
(e: 'search', value: string, filters: TFilter[]): void
(e: 'showFilter', event: Event): void
Expand All @@ -109,7 +116,10 @@ watchDebounced(

const wrapperStyle = computed(() => {
if (showBorder) {
return cn('rounded p-2 border border-solid border-border-default')
return cn(
'rounded p-2 border border-solid border-border-default box-border',
isLarge.value ? 'h-10' : 'h-8'
)
}

// Size-specific classes matching button sizes for consistency
Expand Down
3 changes: 3 additions & 0 deletions src/components/input/MultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
pcOptionCheckbox: {
root: { class: 'hidden' },
style: { display: 'none' }
},
emptyMessage: {
class: 'px-3 pb-4 text-sm text-muted-foreground'
}
}"
:aria-label="label || t('g.multiSelectDropdown')"
Expand Down