From 9b2d2b15316b1196157989092ee09f3b3461bec0 Mon Sep 17 00:00:00 2001 From: NanoAim <65581271+NanoAim@users.noreply.github.com> Date: Fri, 8 Aug 2025 22:21:40 +0800 Subject: [PATCH] Search Engine: Problematic Tooltip --- src/components/navigation/SearchBar.tsx | 52 +++++++++++-------------- 1 file changed, 23 insertions(+), 29 deletions(-) diff --git a/src/components/navigation/SearchBar.tsx b/src/components/navigation/SearchBar.tsx index 9954c2fe..52915a6c 100644 --- a/src/components/navigation/SearchBar.tsx +++ b/src/components/navigation/SearchBar.tsx @@ -2,7 +2,6 @@ import { Search, X } from "@styled-icons/boxicons-regular"; import { HelpCircle } from "@styled-icons/boxicons-solid"; import styled from "styled-components/macro"; import { useEffect, useRef, useState } from "preact/hooks"; -import { Tooltip } from "@revoltchat/ui"; import { internalEmit } from "../../lib/eventEmitter"; import { useSearchAutoComplete, transformSearchQuery, UserMapping } from "../../lib/hooks/useSearchAutoComplete"; import SearchAutoComplete from "./SearchAutoComplete"; @@ -964,6 +963,7 @@ export function SearchBar() { }, 0); }; + // Global keyboard shortcut useEffect(() => { const handleGlobalKeydown = (e: KeyboardEvent) => { @@ -1008,31 +1008,27 @@ export function SearchBar() { onKeyDown={handleKeyDown} onKeyUp={onKeyUp} /> - - {isSearching ? ( - - - - ) : ( - - - - )} - + {isSearching ? ( + + + + ) : ( + + + + )} {autocompleteState.type !== "none" && ( {option.label} {option.description} - - - + ))}