mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
微调
This commit is contained in:
@@ -16,7 +16,7 @@ const PaginationNumber = ({ page, totalPage }) => {
|
||||
const pages = generatePages(pagePrefix, page, currentPage, totalPage)
|
||||
|
||||
return (
|
||||
<div className="my-5 flex justify-center items-end font-medium text-black hover:shadow-xl duration-500 bg-white dark:bg-gray-700 dark:text-gray-300 py-3 shadow space-x-2">
|
||||
<div className="my-5 flex justify-center items-end font-medium text-black hover:shadow-xl duration-500 bg-white dark:bg-hexo-black-gray dark:text-gray-300 py-3 shadow space-x-2">
|
||||
{/* 上一页 */}
|
||||
<Link
|
||||
href={{
|
||||
|
||||
@@ -11,7 +11,7 @@ let windowTop = 0
|
||||
* @constructor
|
||||
*/
|
||||
const StickyBar = ({ children }) => {
|
||||
if (!children) return <></>
|
||||
// 滚动页面时导航条样式调整
|
||||
const scrollTrigger = useCallback(throttle(() => {
|
||||
if (CONFIG_NEXT.NAV_TYPE === 'normal') {
|
||||
return
|
||||
@@ -37,6 +37,8 @@ const StickyBar = ({ children }) => {
|
||||
}
|
||||
}, [])
|
||||
|
||||
if (!children) return <></>
|
||||
|
||||
return (
|
||||
<div id='sticky-bar' className='sticky flex-grow justify-center top-0 duration-500 z-10 pb-16'>
|
||||
<div className='bg-white dark:bg-hexo-black-gray px-5 absolute shadow-md w-full scroll-hidden'>
|
||||
|
||||
Reference in New Issue
Block a user