style(docs): simplify article sidebar surface
This commit is contained in:
@@ -8,11 +8,7 @@ import {
|
|||||||
resolveDocLocation,
|
resolveDocLocation,
|
||||||
} from "../content/registry"
|
} from "../content/registry"
|
||||||
import type { DocLocation, DocPage, DocTocItem } from "../content/types"
|
import type { DocLocation, DocPage, DocTocItem } from "../content/types"
|
||||||
import {
|
import { Actions, SiteFooter, SiteHeader } from "../components/layout"
|
||||||
Actions,
|
|
||||||
SiteFooter,
|
|
||||||
SiteHeader,
|
|
||||||
} from "../components/layout"
|
|
||||||
import { mdxComponents } from "../components/mdx"
|
import { mdxComponents } from "../components/mdx"
|
||||||
import { useLocale, useTranslate } from "../lib/locale"
|
import { useLocale, useTranslate } from "../lib/locale"
|
||||||
|
|
||||||
@@ -218,7 +214,7 @@ export default function ArticlePage({ pathname }: { pathname: string }) {
|
|||||||
<div className="flex w-full">
|
<div className="flex w-full">
|
||||||
<div
|
<div
|
||||||
data-slot="left"
|
data-slot="left"
|
||||||
className="sticky top-16 hidden h-[calc(100svh-(--spacing(16)))] min-w-(--min-lw) flex-[6_1_var(--min-lw)] overflow-y-auto border-r bg-slate-50 md:block dark:border-slate-800 dark:bg-slate-900/50"
|
className="sticky top-16 hidden h-[calc(100svh-(--spacing(16)))] min-w-(--min-lw) flex-[6_1_var(--min-lw)] overflow-y-auto border-r md:block dark:border-slate-800"
|
||||||
>
|
>
|
||||||
<aside className="ml-auto w-full max-w-(--max-lw) p-8">
|
<aside className="ml-auto w-full max-w-(--max-lw) p-8">
|
||||||
<Sidebar current={docLocation} />
|
<Sidebar current={docLocation} />
|
||||||
|
|||||||
Reference in New Issue
Block a user