M: Improve searchbar hitboxes

This commit is contained in:
Ivan 2025-04-29 21:42:18 +03:00
parent 7496389c31
commit bac6650301
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ export function SearchBar({
id={id} id={id}
type='search' type='search'
className={clsx( className={clsx(
'min-w-0 py-2', 'min-w-0 py-2 w-full pr-2',
'leading-tight truncate hover:text-clip', 'leading-tight truncate hover:text-clip',
'bg-transparent', 'bg-transparent',
!noIcon && 'pl-8', !noIcon && 'pl-8',

View File

@ -128,7 +128,7 @@ export function ToolbarSearch({ className, total, filtered }: ToolbarSearchProps
/> />
</div> </div>
<div className='flex h-full grow pr-4'> <div className='flex h-full grow pr-4 sm:pr-12'>
<SearchBar <SearchBar
id='library_search' id='library_search'
placeholder='Поиск' placeholder='Поиск'

View File

@ -138,7 +138,7 @@ export function EditorRSList() {
<SearchBar <SearchBar
id='constituents_search' id='constituents_search'
noBorder noBorder
className='w-32' className='max-w-50'
query={filterText} query={filterText}
onChangeQuery={setFilterText} onChangeQuery={setFilterText}
/> />