plog-search

This commit is contained in:
tangly1024.com
2023-07-11 16:50:16 +08:00
parent 2297777bd0
commit 17f3e21cbe
2 changed files with 9 additions and 7 deletions

View File

@@ -7,11 +7,13 @@ import Tags from './Tags'
* @returns
*/
export default function SearchNavBar(props) {
return (<>
<div className='pb-12'>
<SearchInput {...props} />
</div>
return (
<div className='max-w-7xl w-full mx-auto'>
<div className='py-12'>
<SearchInput {...props} />
</div>
<Tags {...props}/>
</>)
<Tags {...props} />
</div>
)
}

View File

@@ -147,7 +147,7 @@ const LayoutSearch = props => {
}, 100)
}, [router.events])
return <LayoutPostList {...props} slotTop={<SearchNavBar {...props} />} />
return <LayoutPostList {...props} topSlot={<SearchNavBar {...props} />} />
}
/**