Skip to content

Commit 2add1dc

Browse files
authored
fix(Search): add minimum width to Search (#494)
1 parent 5a9b9d9 commit 2add1dc

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/components/Search/Search.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.ydb-search {
2+
min-width: 100px;
3+
}

src/components/Search/Search.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import {useRef, useEffect, useState} from 'react';
2+
import cn from 'bem-cn-lite';
23

34
import {TextInput} from '@gravity-ui/uikit';
45

6+
import './Search.scss';
7+
8+
const b = cn('ydb-search');
9+
510
interface SearchProps {
611
onChange: (value: string) => void;
712
value?: string;
@@ -44,7 +49,7 @@ export const Search = ({
4449
<TextInput
4550
hasClear
4651
autoFocus
47-
className={className}
52+
className={b(null, className)}
4853
placeholder={placeholder}
4954
value={searchValue}
5055
onUpdate={onSearchValueChange}

0 commit comments

Comments
 (0)