Fix jumping and broken tool tips (#2026)

The way the tool tip implements passed class names is mistakable. The passed classes broke the tool tip and are removed. The same issue led to a broken tool tip for the code search and is fixed as well. Unnecessary code is removed from help.

Fixes #2025
This commit is contained in:
Phil-Ah
2022-05-05 21:51:20 +02:00
committed by GitHub
parent a5d1901660
commit 6cf8afac01
4 changed files with 10 additions and 13 deletions

View File

@@ -117,7 +117,7 @@ const FileSearch: FC<Props> = ({ repository, baseUrl, branches, selectedBranch }
<HomeIcon title={t("fileSearch.home")} name="home" color="inherit" />
</HomeLink>
<FilterInput
className="is-full-width"
className="is-full-width pr-2"
placeholder={t("fileSearch.input.placeholder")}
value={query}
filter={search}
@@ -125,7 +125,7 @@ const FileSearch: FC<Props> = ({ repository, baseUrl, branches, selectedBranch }
id={id}
testId="file_search_filter_input"
/>
<Help className="ml-3" message={t("fileSearch.input.help")} id={id} />
<Help message={t("fileSearch.input.help")} id={id} />
</div>
<ErrorNotification error={error} />
{isLoading ? <Loading /> : <FileSearchResults contentBaseUrl={contentBaseUrl} query={query} paths={result} />}