Skip to content

Commit d31c143

Browse files
authored
Make all whitespace in and around filter input clickable (#1726)
1 parent 6c2ac20 commit d31c143

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

frontend/viewer/src/lib/components/ui/input/composable-input.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import type {Snippet} from 'svelte';
55
import InputShell from './input-shell.svelte';
66
import {Input} from '.';
7+
import {cn} from '$lib/utils';
78
89
type Props = WithElementRef<HTMLAttributes<HTMLDivElement>>;
910
@@ -26,8 +27,8 @@
2627
const focusRingClass = 'has-[.real-input:focus-visible]:ring-ring has-[.real-input:focus-visible]:outline-none has-[.real-input:focus-visible]:ring-2 has-[.real-input:focus-visible]:ring-offset-2';
2728
</script>
2829

29-
<InputShell bind:ref {focusRingClass} class={className} {...restProps}>
30+
<InputShell bind:ref {focusRingClass} class={cn('gap-0', className)} {...restProps}>
3031
{@render before?.()}
31-
<Input variant="ghost" {placeholder} class="grow real-input" bind:ref={inputRef} bind:value />
32+
<Input variant="ghost" {placeholder} class="grow real-input h-full px-2" bind:ref={inputRef} bind:value />
3233
{@render after?.()}
3334
</InputShell>

0 commit comments

Comments
 (0)