slightly less bad search box bg

This commit is contained in:
Martti Malmi
2023-12-02 21:40:38 +02:00
parent 601ecaa9de
commit 9f6ca8e756
3 changed files with 6 additions and 5 deletions

View File

@ -170,8 +170,8 @@ export default function SearchBox() {
<div
className={`p-2 cursor-pointer ${
activeIndex === 0
? "bg-neutral-300 dark:bg-neutral-800 hover:bg-neutral-400 dark:hover:bg-neutral-600"
: "hover:bg-neutral-200 dark:hover:bg-neutral-800"
? "bg-bg-secondary"
: "bg-bg-color hover:bg-bg-secondary"
}`}
onMouseEnter={() => setActiveIndex(0)}
onClick={() => navigate(`/search/${encodeURIComponent(search)}`, { state: { forceRefresh: true } })}>
@ -182,8 +182,8 @@ export default function SearchBox() {
key={idx}
className={`p-2 cursor-pointer ${
activeIndex === idx + 1
? "bg-neutral-300 dark:bg-neutral-800 hover:bg-neutral-400 dark:hover:bg-neutral-600"
: "hover:bg-neutral-200 dark:hover:bg-neutral-800"
? "bg-bg-secondary"
: "bg-bg-color hover:bg-bg-secondary"
}`}
onMouseEnter={() => setActiveIndex(idx + 1)}>
<ProfileImage pubkey={result.pubkey} showProfileCard={false} />