svg width fixed

This commit is contained in:
VividTruthKeeper 2023-02-20 13:41:39 +05:00
parent ebead93a10
commit c0f8c54ad2
1 changed files with 8 additions and 1 deletions

View File

@ -71,7 +71,14 @@ const Search = ({ isSmall, isInputFocused, setIsInputFocused }: IProps) => {
fill="none"
xmlns="http://www.w3.org/2000/svg"
variants={searchMobileMotion}
animate={isSmall ? (isInputFocused ? "loopActive" : "loopRest") : {}}
initial={isSmall ? "loopRest" : {}}
animate={
isSmall
? isInputFocused
? "loopActive"
: "loopRest"
: { width: "1.3rem" }
}
>
<g clip-path="url(#clip0_138_523)">
<path