@@ -11,6 +11,7 @@ import { MobileNavigationButton } from '../MobileNavigationButton'
11
11
import { DocsSidebar } from '../SidebarRenderer'
12
12
import { MobileNavigationDropdown } from '../MobileNavigationDropdown'
13
13
import { SidebarTableOfContent } from '../SidebarTableOfContent'
14
+ import { VersionSwitch } from '../VersionSwitch'
14
15
import Link from '@/components/Link'
15
16
import { cn } from '@/utils'
16
17
import { getAllMetadata } from '@/server/getAllMetadata'
@@ -38,7 +39,8 @@ export const LayoutHeader = forwardRef<HTMLDivElement, { config?: SidebarConfig
38
39
< span className = "font-semibold" > Tiptap</ span > Docs
39
40
</ span >
40
41
</ Link >
41
- < span className = "hidden lg:block select-none text-black/15" > /</ span >
42
+ < VersionSwitch />
43
+ < span className = "hidden select-none lg:block text-black/15" > /</ span >
42
44
< nav className = "hidden lg:flex items-center gap-[0.5px]" >
43
45
< ProductDropdown />
44
46
< NavLink href = "/guides" > Guides</ NavLink >
@@ -49,11 +51,11 @@ export const LayoutHeader = forwardRef<HTMLDivElement, { config?: SidebarConfig
49
51
</ NavLink >
50
52
</ nav >
51
53
</ div >
52
- < div className = "ml-auto flex items-center gap-2" >
54
+ < div className = "flex items-center gap-2 ml-auto " >
53
55
< div className = "hidden xl:block" >
54
56
< SearchButton />
55
57
</ div >
56
- < div className = "hidden lg:flex items-center gap-1 xl:hidden" >
58
+ < div className = "items-center hidden gap-1 lg:flex xl:hidden" >
57
59
< ToCButton />
58
60
< SearchButton />
59
61
</ div >
@@ -73,11 +75,11 @@ export const LayoutHeader = forwardRef<HTMLDivElement, { config?: SidebarConfig
73
75
</ div >
74
76
</ div >
75
77
< div className = "block lg:hidden py-1.5 bg-white px-[1.125rem] shadow-slim rounded-bl-pilled rounded-br-pilled border-t border-neutral-200" >
76
- < div className = "h-8 py-1 flex items-center " >
77
- < div className = "mr-auto flex items-center gap-2" >
78
+ < div className = "flex items-center h-8 py-1" >
79
+ < div className = "flex items-center gap-2 mr-auto " >
78
80
< MobileNavigationButton config = { config } />
79
81
</ div >
80
- < div className = "ml-auto flex items-center gap-2" >
82
+ < div className = "flex items-center gap-2 ml-auto " >
81
83
< ToCButton />
82
84
< SearchButton />
83
85
</ div >
@@ -176,7 +178,7 @@ export const LayoutContent = forwardRef<HTMLDivElement, LayoutContentProps>(
176
178
< div className = "pt-6 pb-16 sm:pb-24 sm:pt-8 lg:pb-32 lg:pt-10" > { children } </ div >
177
179
178
180
< footer className = "border-t border-grayAlpha-300 pt-8 pb-[3.125rem]" >
179
- < div className = "flex flex-col lg:flex-row items-start justify-between gap-4" >
181
+ < div className = "flex flex-col items-start justify-between gap-4 lg:flex-row " >
180
182
< div className = "flex flex-col items-start flex-none" >
181
183
< PageEditFooter />
182
184
</ div >
0 commit comments