diff --git a/quartz.layout.ts b/quartz.layout.ts index 1c601a2b6..39ee2b382 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -28,11 +28,13 @@ export const defaultContentPageLayout: PageLayout = { Component.Flex({ components: [ { - Component: Component.Search(), + Component: Component.Search({miniButton: false}), grow: true, }, + { Component: Component.Tags() }, { Component: Component.Darkmode() }, ], + gap: "0rem", }), Component.Explorer(), ], @@ -52,11 +54,13 @@ export const defaultListPageLayout: PageLayout = { Component.Flex({ components: [ { - Component: Component.Search(), + Component: Component.Search({miniButton: false}), grow: true, }, + { Component: Component.Tags() }, { Component: Component.Darkmode() }, ], + gap: "0rem", }), Component.Explorer(), ], diff --git a/quartz/components/Search.tsx b/quartz/components/Search.tsx index 4c6664ae8..0b595576c 100644 --- a/quartz/components/Search.tsx +++ b/quartz/components/Search.tsx @@ -7,20 +7,23 @@ import { i18n } from "../i18n" export interface SearchOptions { enablePreview: boolean + miniButton: boolean } const defaultOptions: SearchOptions = { enablePreview: true, + miniButton: false, } export default ((userOpts?: Partial) => { const Search: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => { const opts = { ...defaultOptions, ...userOpts } const searchPlaceholder = i18n(cfg.locale).components.search.searchBarPlaceholder + const searchButtonText = opts.miniButton ? "" :

{i18n(cfg.locale).components.search.title}

return ( -
-