File tree Expand file tree Collapse file tree
frontend/viewer/src/lib/components/ui/input Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 >
You can’t perform that action at this time.
0 commit comments