diff --git a/src/components/TableOfContents.tsx b/src/components/TableOfContents.tsx index 6d0f97cb9..ea6da5612 100644 --- a/src/components/TableOfContents.tsx +++ b/src/components/TableOfContents.tsx @@ -4,6 +4,7 @@ import { createEffect, createSignal, For, + type JSXElement, onCleanup, Show, untrack, @@ -12,6 +13,7 @@ import { import type { Heading } from "~/genCollections"; interface Props { + children?: JSXElement; theme: "aside" | "island"; headings: Heading[]; } @@ -126,7 +128,7 @@ function Item(props: { diff --git a/src/components/blog/prose.tsx b/src/components/blog/prose.tsx index 08d3b387a..8df1a64a4 100644 --- a/src/components/blog/prose.tsx +++ b/src/components/blog/prose.tsx @@ -67,7 +67,7 @@ export function h5(props: JSX.HTMLAttributes) {
@@ -82,7 +82,7 @@ export function h6(props: JSX.HTMLAttributes) {
diff --git a/src/components/prose.css b/src/components/prose.css index d43b655ca..256825015 100644 --- a/src/components/prose.css +++ b/src/components/prose.css @@ -11,10 +11,10 @@ article:has(.prose-marker) h4 { @apply text-1.125rem mt-8px mb-8px font-600 leading-[1.35] tracking-[-.014em] first:mt-0 last:mb-0; } article:has(.prose-marker) h5 { - @apply text-.875rem mt-8px mb-8px font-500 leading-[1.4] tracking-[-.006em] first:mt-0 last:mb-0; + @apply text-.875rem mt-8px mb-8px font-medium leading-[1.4] tracking-[-.006em] first:mt-0 last:mb-0; } article:has(.prose-marker) h6 { - @apply text-.875rem mt-8px mb-8px font-500 leading-[1.4] tracking-[-.006em] first:mt-0 last:mb-0; + @apply text-.875rem mt-8px mb-8px font-medium leading-[1.4] tracking-[-.006em] first:mt-0 last:mb-0; } article:has(.prose-marker) p { @apply mt-8px mb-8px leading-[1.5] first:mt-0 last:mb-0; diff --git a/src/components/prose.tsx b/src/components/prose.tsx index b0a3516be..d7a9de176 100644 --- a/src/components/prose.tsx +++ b/src/components/prose.tsx @@ -68,7 +68,7 @@ export function h5(props: JSX.IntrinsicElements["h5"]) {
@@ -83,7 +83,7 @@ export function h6(props: JSX.IntrinsicElements["h6"]) {
diff --git a/src/layouts/rest-api/index.tsx b/src/layouts/rest-api/index.tsx index 3e2088039..4c91a6376 100644 --- a/src/layouts/rest-api/index.tsx +++ b/src/layouts/rest-api/index.tsx @@ -31,7 +31,7 @@ export default function RestApi(props: RestApiProps) { ); return (
-
+
{props.title} {props.children} diff --git a/src/layouts/sidebar/DocsNavMenu.tsx b/src/layouts/sidebar/DocsNavMenu.tsx index 602260559..dbbaa8ffc 100644 --- a/src/layouts/sidebar/DocsNavMenu.tsx +++ b/src/layouts/sidebar/DocsNavMenu.tsx @@ -61,7 +61,7 @@ export default function DocsNavMenu(props: Props) { >
  • - {item.label} + {item.label}

      diff --git a/src/layouts/sidebar/LeftSidebar.tsx b/src/layouts/sidebar/LeftSidebar.tsx index caef10b50..8b549a641 100644 --- a/src/layouts/sidebar/LeftSidebar.tsx +++ b/src/layouts/sidebar/LeftSidebar.tsx @@ -6,7 +6,7 @@ export default function LeftSidebar(props: { children: JSXElement }) { const sidebarOpen = useSidebarContext(); return ( -