Skip to content

Commit

Permalink
fix search collapsing before click #741
Browse files Browse the repository at this point in the history
  • Loading branch information
Aprillion committed Jun 25, 2024
1 parent 7baa4ee commit 4c33df5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/components/SearchInput/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export const SearchInput = ({onChange, expandable, placeholderText}: SearchInput
const clear = () => handleSearch('')

return (
<div className={`search-box bordered ${expandable ? 'expandable' : ''}`}>
<div
className={`search-box bordered ${expandable ? 'expandable' : ''} ${search ? 'expanded' : ''}`}
>
<div className="search-content">
<MagnifyingIcon className="iconsMagnifyingGlass" />
<input
Expand Down
3 changes: 2 additions & 1 deletion app/components/SearchInput/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
box-sizing: border-box;
border-radius: var(--border-radius);
}
.search-box.expandable:focus-within {
.search-box.expandable:focus-within,
.search-box.expandable.expanded {
width: 21.46vw;
}

Expand Down

0 comments on commit 4c33df5

Please sign in to comment.