From b99d4cd8ce99ea1e52a97654ab153774a6bc598a Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Sun, 20 Aug 2023 14:05:37 -0700 Subject: [PATCH] recent notes css fixes --- quartz/components/RecentNotes.tsx | 4 ++-- quartz/components/TableOfContents.tsx | 4 ++-- quartz/components/styles/recentNotes.scss | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/quartz/components/RecentNotes.tsx b/quartz/components/RecentNotes.tsx index bb7ba199a..5e992b48b 100644 --- a/quartz/components/RecentNotes.tsx +++ b/quartz/components/RecentNotes.tsx @@ -24,11 +24,11 @@ const defaultOptions: Options = { export default ((userOpts?: Partial) => { const opts = { ...defaultOptions, ...userOpts } function RecentNotes(props: QuartzComponentProps) { - const { allFiles, fileData } = props + const { allFiles, fileData, displayClass } = props const pages = allFiles.filter(opts.filter).sort(opts.sort).slice(0, opts.limit) const remaining = Math.max(0, pages.length - opts.limit) return ( -
+

{opts.title}

    {pages.map((page) => { diff --git a/quartz/components/TableOfContents.tsx b/quartz/components/TableOfContents.tsx index 67f29d58a..460456591 100644 --- a/quartz/components/TableOfContents.tsx +++ b/quartz/components/TableOfContents.tsx @@ -13,13 +13,13 @@ const defaultOptions: Options = { layout: "modern", } -function TableOfContents({ fileData }: QuartzComponentProps) { +function TableOfContents({ fileData, displayClass }: QuartzComponentProps) { if (!fileData.toc) { return null } return ( -
    +