mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
Search Engine: Fix tooltip
This commit is contained in:
@@ -9,6 +9,7 @@ import SearchDatePicker from "./SearchDatePicker";
|
|||||||
import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice";
|
import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice";
|
||||||
import { useApplicationState } from "../../mobx/State";
|
import { useApplicationState } from "../../mobx/State";
|
||||||
import { SIDEBAR_MEMBERS } from "../../mobx/stores/Layout";
|
import { SIDEBAR_MEMBERS } from "../../mobx/stores/Layout";
|
||||||
|
import Tooltip from "../common/Tooltip";
|
||||||
|
|
||||||
const Container = styled.div`
|
const Container = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -1020,6 +1021,7 @@ export function SearchBar() {
|
|||||||
? "Server-wide search requires at least one other filter or search term"
|
? "Server-wide search requires at least one other filter or search term"
|
||||||
: showDateRangeError
|
: showDateRangeError
|
||||||
? "Only one date range filter is allowed"
|
? "Only one date range filter is allowed"
|
||||||
|
: showMultipleHasError
|
||||||
? "Only one attachment type filter is allowed"
|
? "Only one attachment type filter is allowed"
|
||||||
: showDuplicateFilterError
|
: showDuplicateFilterError
|
||||||
? "Only one of each filter type is allowed"
|
? "Only one of each filter type is allowed"
|
||||||
@@ -1046,7 +1048,9 @@ export function SearchBar() {
|
|||||||
>
|
>
|
||||||
<OptionLabel>{option.label}</OptionLabel>
|
<OptionLabel>{option.label}</OptionLabel>
|
||||||
<OptionDesc>{option.description}</OptionDesc>
|
<OptionDesc>{option.description}</OptionDesc>
|
||||||
<HelpIcon size={16} title={option.tooltip} />
|
<Tooltip content={option.tooltip} placement="top">
|
||||||
|
<HelpIcon size={16} />
|
||||||
|
</Tooltip>
|
||||||
</Option>
|
</Option>
|
||||||
))}
|
))}
|
||||||
</OptionsDropdown>
|
</OptionsDropdown>
|
||||||
|
|||||||
Reference in New Issue
Block a user