diff --git a/apps/docs/src/components/fragments/header.tsx b/apps/docs/src/components/fragments/header.tsx
index d0674b23..ced8faf0 100644
--- a/apps/docs/src/components/fragments/header.tsx
+++ b/apps/docs/src/components/fragments/header.tsx
@@ -12,18 +12,6 @@ const isAppleDevice = (): boolean => {
const Header: Component = () => {
return (
-
-
-
-
- Documentation
-
-
= (props) => {
}
}
};
- const container = document.getElementById("container");
+ const container = document.body;
const observerOptions: IntersectionObserverInit = {
- root: container,
rootMargin: "-100px 0% -66%",
threshold: 0
};
@@ -66,38 +66,46 @@ const OnThisPage: Component = (props) => {
});
return (
-
-
-
- {(heading) => {
- return (
-
- );
- }}
-
-
+ <>
+
+
+
+ {(heading) => {
+ return (
+
+ );
+ }}
+
+
+
+ >
);
};
diff --git a/apps/docs/src/components/fragments/side-bar.tsx b/apps/docs/src/components/fragments/side-bar.tsx
index 9ad60743..d906a355 100644
--- a/apps/docs/src/components/fragments/side-bar.tsx
+++ b/apps/docs/src/components/fragments/side-bar.tsx
@@ -111,63 +111,81 @@ const SideBarNestedMenu: Component<{
const SideBar: Component = (props) => {
return (
<>
-
-
-
- {(link) => {
+
+
+
+
+
+
+ Documentation
+
+
+
+
+ {(menuItem) => {
return (
-
-
- {link.label}
-
+
+
+
);
}}
-
-
- {(menuItem) => {
- return (
-
-
-
- );
+
+
+ {
+ setMenuOpened(!menuOpened());
}}
-
-
- {
- setMenuOpened(!menuOpened());
- }}
- />
+ />
+
+
>
);
};
diff --git a/apps/docs/src/components/layouts/default.astro b/apps/docs/src/components/layouts/default.astro
index ac2f70b0..2b22099b 100644
--- a/apps/docs/src/components/layouts/default.astro
+++ b/apps/docs/src/components/layouts/default.astro
@@ -21,17 +21,13 @@ type Props = {
-
-
-
+
+
-
+
diff --git a/apps/docs/src/styles/styles.scss b/apps/docs/src/styles/styles.scss
index 32c36b41..485480f0 100644
--- a/apps/docs/src/styles/styles.scss
+++ b/apps/docs/src/styles/styles.scss
@@ -37,7 +37,7 @@ kbd {
}
img {
- @apply rounded-2xl;
+ @apply rounded-2xl dark:border-gray-700 dark:border-2;
}
table {
overflow: visible;