Skip to content

Commit 1fc1e29

Browse files
author
Ricardo Lüders
committed
docs: fix navbar theme
1 parent b343057 commit 1fc1e29

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

app/docs/layout.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ const DocsNavbar: FC<DocsLayoutState> = ({ isCollapsed, setCollapsed }) => {
9090
<Navbar
9191
fluid
9292
theme={{
93-
base: 'sticky top-0 z-40 bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between w-full mx-auto py-2.5 px-4',
94-
inner: {
95-
base: 'mx-auto flex flex-wrap justify-between items-center w-full',
93+
root: {
94+
base: 'sticky top-0 z-40 bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between w-full mx-auto py-2.5 px-4',
95+
inner: {
96+
base: 'mx-auto flex flex-wrap justify-between items-center w-full',
97+
},
9698
},
9799
}}
98100
>

app/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ const HomeNavbar: FC = () => {
9090
return (
9191
<Navbar
9292
theme={{
93-
base: 'sticky top-0 z-40 bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between w-full mx-auto py-4',
94-
inner: {
95-
base: 'mx-auto flex flex-wrap justify-between items-center w-full max-w-8xl px-4 lg:px-20',
93+
root: {
94+
base: 'sticky top-0 z-40 bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between w-full mx-auto py-4',
95+
inner: {
96+
base: 'mx-auto flex flex-wrap justify-between items-center w-full max-w-8xl px-4 lg:px-20',
97+
},
9698
},
9799
}}
98100
>
@@ -1097,7 +1099,7 @@ const DarkModeSwitcher: FC = () => {
10971099
</span>
10981100
</button>{' '}
10991101
<svg
1100-
className="h-11 w-11 rounded-lg bg-cyan-700 p-2 text-white dark:hidden dark:bg-gray-700"
1102+
className="h-11 w-11 rounded-lg bg-cyan-700 p-2 text-white dark:hidden dark:bg-gray-700"
11011103
fill="currentColor"
11021104
viewBox="0 0 20 20"
11031105
xmlns="http://www.w3.org/2000/svg"

0 commit comments

Comments
 (0)