diff --git a/bun.lockb b/bun.lockb index 24be24e..347635c 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 8e5099b..35de779 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "react-syntax-highlighter": "latest", "rehype-raw": "latest", "remark-frontmatter": "latest", - "remark-gfm": "latest" + "remark-gfm": "latest", + "tailwind-scrollbar": "latest" }, "devDependencies": { "typescript": "latest", diff --git a/src/app/c/[...slug]/page.tsx b/src/app/c/[...slug]/page.tsx index 4e3d050..64e2696 100644 --- a/src/app/c/[...slug]/page.tsx +++ b/src/app/c/[...slug]/page.tsx @@ -71,7 +71,7 @@ export default function Content({ params }: Props) { }, a({ href, children, className }) { return ( - {children} + {children} ) }, pre({ children, className }) { diff --git a/src/app/components/cases.tsx b/src/app/components/cases.tsx index ad72a4b..94227ca 100644 --- a/src/app/components/cases.tsx +++ b/src/app/components/cases.tsx @@ -2,9 +2,9 @@ import Link from "next/link"; import { getCases } from "$lib/content"; const Cases = () => -
+
{getCases().filter(c => !c.data.draft).sort((a, b) => Number(b.data.z) - Number(a.data.z)).map((c) => c.data).map((d) => -
+
{d.title} diff --git a/src/app/components/copy-button.tsx b/src/app/components/copy-button.tsx index c4eb76f..9ebb3d8 100644 --- a/src/app/components/copy-button.tsx +++ b/src/app/components/copy-button.tsx @@ -12,6 +12,7 @@ const CopyButton = ({ text }: Props) => { return (