From 2cdbf43309ad53fd2f370e216ff701c4674f45c8 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Mon, 19 Feb 2024 20:03:22 -0600 Subject: [PATCH] Tighten Command-K content --- src/components/CommandKClient.tsx | 64 +++++++++++---------- src/site/CommandK.tsx | 96 +++++++++++++++++++++---------- 2 files changed, 100 insertions(+), 60 deletions(-) diff --git a/src/components/CommandKClient.tsx b/src/components/CommandKClient.tsx index c04b4e2a..9d2dd455 100644 --- a/src/components/CommandKClient.tsx +++ b/src/components/CommandKClient.tsx @@ -54,6 +54,20 @@ export default function CommandKClient({ } }, [queryDebounced, onQueryChange]); + const sectionTheme: CommandKSection = { + heading: 'Theme', + items: [{ + label: 'System', + action: () => setTheme('system'), + }, { + label: 'Light', + action: () => setTheme('light'), + }, { + label: 'Dark', + action: () => setTheme('dark'), + }], + }; + return (
-
- Search for photos, tags, cameras, and film -
setQuery(e.currentTarget.value)} - className="w-full !min-w-0" + className={clsx( + 'w-full', + 'placeholder:text-gray-400', + 'placeholder:dark:text-gray-700', + )} style={{ paddingRight: '2rem' }} + placeholder="Search photos, views, settings ..." /> {isLoading && }
-