File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,25 +98,28 @@ export function MainHeader(props: MainHeaderProps) {
9898
9999 < Show when = { config ( ) . themeConfig ?. projects } >
100100 { ( projects ) => (
101- < For each = { projects ( ) } >
102- { ( p ) => {
103- const match = useMatch ( ( ) =>
104- locale . applyPathPrefix ( `${ p . path } /*rest` )
105- ) ;
106-
107- return (
108- < li >
109- < NavLink
110- href = { locale . applyPathPrefix ( p . path ) }
111- data-matched = { match ( ) !== undefined ? true : undefined }
112- onClick = { ( ) => setNavOpen ( false ) }
113- >
114- { p . name }
115- </ NavLink >
116- </ li >
117- ) ;
118- } }
119- </ For >
101+ < ul class = "order-2 col-span-2 flex w-full justify-center gap-5 pt-6 lg:col-span-1 lg:w-auto lg:pt-0" >
102+ < For each = { projects ( ) } >
103+ { ( p ) => {
104+ const match = useMatch ( ( ) =>
105+ locale . applyPathPrefix ( `${ p . path } /*rest` )
106+ ) ;
107+
108+ return (
109+ < li >
110+ < NavLink
111+ href = { locale . applyPathPrefix ( p . path ) }
112+ data-matched = { match ( ) !== undefined ? true : undefined }
113+ onClick = { ( ) => setNavOpen ( false ) }
114+ active = { project ( ) ?. name === p . name }
115+ >
116+ { p . name }
117+ </ NavLink >
118+ </ li >
119+ ) ;
120+ } }
121+ </ For >
122+ </ ul >
120123 ) }
121124 </ Show >
122125
You can’t perform that action at this time.
0 commit comments