docs: fix scroll top margin (#8605)

This commit is contained in:
Shahed Nasser
2024-08-16 09:28:02 +03:00
committed by GitHub
parent 5abe9f9c66
commit 12728f17ad
6 changed files with 16 additions and 14 deletions
+1 -4
View File
@@ -10,15 +10,12 @@ const ReferencePage = async () => {
return (
<AreaProvider area={"admin"}>
<PageTitleProvider>
<h1 className="!text-h2 block lg:hidden">
<h1 className="!text-h2 scroll-m-56 lg:pl-4" id="introduction">
Medusa V2 Admin API Reference
</h1>
<DividedLayout
mainContent={
<Section checkActiveOnScroll={true}>
<h1 className="!text-h2 hidden lg:block">
Medusa V2 Admin API Reference
</h1>
<AdminContentV2 />
</Section>
}
+2 -6
View File
@@ -10,24 +10,20 @@ const ReferencePage = async () => {
return (
<AreaProvider area={"store"}>
<PageTitleProvider>
<h1 className="!text-h2 block lg:hidden">
<h1 className="!text-h2 scroll-m-56 lg:pl-4" id="introduction">
Medusa V2 Store API Reference
</h1>
<DividedLayout
mainContent={
<Section checkActiveOnScroll={true}>
<h1 className="!text-h2 hidden lg:block">
Medusa V2 Store API Reference
</h1>
<StoreContentV2 />
</Section>
}
codeContent={
<div className="mb-1 lg:mb-0">
<div className="mb-1 lg:mb-0 hidden lg:block">
<ClientLibrariesV2 />
</div>
}
className="flex-col-reverse"
/>
<Tags />
</PageTitleProvider>
+1 -1
View File
@@ -12,7 +12,7 @@ export const config: DocsConfig = {
{
type: "link",
title: "Introduction",
path: "",
path: "introduction",
loaded: true,
},
],