mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
align-center
This commit is contained in:
@@ -17,7 +17,7 @@ export const LayoutSlug = props => {
|
||||
|
||||
const scrollListener = () => {
|
||||
const scrollY = window.pageYOffset
|
||||
const shouldShow = scrollY > 220
|
||||
const shouldShow = scrollY > 220 && post?.toc?.length > 0
|
||||
|
||||
if (shouldShow !== show) {
|
||||
switchShow(shouldShow)
|
||||
@@ -46,7 +46,7 @@ export const LayoutSlug = props => {
|
||||
>
|
||||
|
||||
<div id='inner-wrapper' className='flex'>
|
||||
<div className='drop-shadow-xl max-w-4xl 2xl:ml-52'>
|
||||
<div className={'drop-shadow-xl max-w-4xl 2xl:ml-36'}>
|
||||
<div className="-mt-32 rounded-md mx-3 lg:border lg:rounded-xl lg:py-4 bg-white dark:bg-hexo-black-gray dark:border-black">
|
||||
{lock && <ArticleLock validPassword={validPassword} />}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user