From 306840c41adae7522d8eec508dbb394cec10d4d7 Mon Sep 17 00:00:00 2001 From: Viki Date: Tue, 18 Jun 2024 16:15:14 +0800 Subject: [PATCH] docs: refine docs ui --- website/src/pages/components/search/index.tsx | 10 +++++----- website/src/pages/index.tsx | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/website/src/pages/components/search/index.tsx b/website/src/pages/components/search/index.tsx index ef60880a..7024ac50 100644 --- a/website/src/pages/components/search/index.tsx +++ b/website/src/pages/components/search/index.tsx @@ -6,7 +6,7 @@ import { camelCase } from 'change-case' import hooks from './hooks.json' const filterLabelCls = - 'inline-flex gap-1 items-center rounded border border-solid text-xs border-gray/20 px-2 py-1 rounded-full cursor-pointer' + 'transition will-change-auto inline-flex gap-1 items-center rounded border border-solid text-xs border-gray/20 px-2 py-1 rounded-full cursor-pointer' export function SearchHooks() { const categories = useCreation(() => Array.from(new Set(hooks.map((e) => e.category))).sort()) @@ -42,7 +42,7 @@ export function SearchHooks() { } return ( -
+
-
Clear Filters - - {filteredHooks.length} hooks found, sorted by name from A-Z +
+ {filteredHooks.length} hooks found.
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 3385d0e8..344fed60 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -9,12 +9,12 @@ export default function Home() { return (
-
-
+
+
🪝 -

{siteConfig.title}

+

{siteConfig.title}

{siteConfig.tagline}

-
+
→ Introduction → Get Started → Reference