Skip to content

Commit

Permalink
chore(search): update story for custom width
Browse files Browse the repository at this point in the history
  • Loading branch information
panvourtsis committed May 21, 2024
1 parent fc48c5f commit 3fcf71d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
-webkit-flex: 0;
-ms-flex: 0;
flex: 0;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
Expand All @@ -255,11 +255,10 @@
opacity: 1;
cursor: text;
height: 2.25rem;
min-width: unset;
min-width: 300px;
background-color: rgba(200,206,255,0.30);
z-index: 1;
background: #ffffff;
width: 300px;
}

.emotion-9:hover {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/Search.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const SimpleSearch = {
<Search value={value} onClear={handleClear} onInput={(e) => setValue(e.target.value)} />
<Search
placeholder="Search with custom width"
sx={{ wrapper: { minWidth: 'unset', width: '300px' } }}
sx={{ wrapper: { minWidth: '300px', flex: 0 } }}
value={value2}
onClear={handleClear2}
onInput={(e) => setValue2(e.target.value)}
Expand Down

0 comments on commit 3fcf71d

Please sign in to comment.