From b1f9a2cb361627df6354ddd5643d7a31a83d23ea Mon Sep 17 00:00:00 2001 From: esemyonov <132259164+esemyonov@users.noreply.github.com> Date: Mon, 4 Dec 2023 10:15:07 +0600 Subject: [PATCH] feat: header template (#272) * feat: header template * fix: button styles --- src/components/Layout.tsx | 2 +- src/components/Search.tsx | 23 +++++------------------ src/components/ThemeSelector.tsx | 2 +- tailwind.config.ts | 1 - 4 files changed, 7 insertions(+), 21 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index f697fbbf..af37efb5 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -32,7 +32,7 @@ function Header() { "!dark:bg-black": scrollY > 10, })} > -
+
diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 4548f380..734419bb 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -265,7 +265,7 @@ const SearchInput = forwardRef< return (
- + (); let { buttonProps, dialogProps } = useSearchProps(); - useEffect(() => { - setModifierKey( - /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘" : "Ctrl ", - ); - }, []); - return ( <> diff --git a/src/components/ThemeSelector.tsx b/src/components/ThemeSelector.tsx index adfce2a5..513b7945 100644 --- a/src/components/ThemeSelector.tsx +++ b/src/components/ThemeSelector.tsx @@ -69,7 +69,7 @@ export function ThemeSelector(