Skip to content

Commit

Permalink
fix: search input width should maximise space
Browse files Browse the repository at this point in the history
  • Loading branch information
MengLinMaker authored and jer3m01 committed Nov 3, 2024
1 parent 1547361 commit 4943738
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/docs/src/examples/search.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
.search__input {
appearance: none;
display: inline-flex;
min-width: 0;
width: 100%;
min-height: 40px;
padding-left: 16px;
font-size: 16px;
Expand Down
5 changes: 3 additions & 2 deletions apps/docs/src/routes/docs/core/components/search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ The search consists of:
.search__input {
appearance: none;
display: inline-flex;
min-width: 0;
width: 100%;
min-height: 40px;
padding-left: 16px;
font-size: 16px;
Expand Down Expand Up @@ -338,6 +338,7 @@ Show a debouncing icon by adding a `loadingComponent` to `Search.Indicator`.

```tsx
<Search
triggerMode="focus"
options={options()}
onInputChange={query => setOptions(queryEmojiData(query))}
onChange={result => setEmoji(result)}
Expand Down Expand Up @@ -366,7 +367,7 @@ Show a debouncing icon by adding a `loadingComponent` to `Search.Indicator`.
<Search.Input />
</Search.Control>
<Search.Portal>
<Search.Content >
<Search.Content onCloseAutoFocus={(e) => e.preventDefault()}>
<Search.Listbox />
<Search.NoResult>
😬 No emoji found
Expand Down

0 comments on commit 4943738

Please sign in to comment.