diff --git a/src/plugins/favGifSearch/index.tsx b/src/plugins/favGifSearch/index.tsx index 2e0ea651..28823a68 100644 --- a/src/plugins/favGifSearch/index.tsx +++ b/src/plugins/favGifSearch/index.tsx @@ -30,6 +30,7 @@ interface SearchBarComponentProps { onClear: () => void; query: string; placeholder: string; + className?: string; } type TSearchBarComponent = @@ -147,7 +148,7 @@ function SearchBar({ instance, SearchBarComponent }: { instance: Instance; Searc // scroll back to top ref.current?.containerRef?.current - .closest("#gif-picker-tab-panel") + ?.closest("#gif-picker-tab-panel") ?.querySelector("[class|=\"content\"]") ?.firstElementChild?.scrollTo(0, 0); @@ -177,6 +178,7 @@ function SearchBar({ instance, SearchBarComponent }: { instance: Instance; Searc ref={ref} autoFocus={true} size="md" + className="" onChange={onChange} onClear={() => { setQuery("");