Merge branch 'feature_catogory_scroll' into preview

This commit is contained in:
tangly1024
2022-03-30 11:22:26 +08:00
4 changed files with 4 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ const Catalog = ({ toc }) => {
return <div>
<div className='w-full dark:text-gray-300 mb-2'><i className='mr-1 fas fa-stream' /> 目录</div>
<div className='overflow-y-auto max-h-96' ref={tRef}>
<div className='overflow-y-auto max-h-96 overscroll-none' ref={tRef}>
<nav className='h-full font-sans text-black'>
{toc.map((tocItem) => {
const id = uuidToId(tocItem.id)

View File

@@ -62,7 +62,7 @@ const Catalog = ({ toc }) => {
<div className='w-full py-3'>
<Progress/>
</div>
<div className='overflow-y-auto max-h-36 lg:max-h-96' ref={tRef}>
<div className='overflow-y-auto max-h-36 lg:max-h-96 overscroll-none' ref={tRef}>
<nav className='h-full font-sans text-black'>
{toc.map((tocItem) => {
const id = uuidToId(tocItem.id)

View File

@@ -61,7 +61,7 @@ const Catalog = ({ toc }) => {
<div className='w-full py-1'>
<Progress/>
</div>
<div className='overflow-y-auto max-h-96' ref={tRef}>
<div className='overflow-y-auto max-h-96 overscroll-none' ref={tRef}>
<nav className='h-full font-sans text-black'>
{toc.map((tocItem) => {
const id = uuidToId(tocItem.id)

View File

@@ -62,7 +62,7 @@ const Toc = ({ toc }) => {
<div className='w-full pb-1'>
<Progress/>
</div>
<div className='overflow-y-auto max-h-96' ref={tRef}>
<div className='overflow-y-auto max-h-96 overscroll-none' ref={tRef}>
<nav className='h-full font-sans text-black'>
{toc.map((tocItem) => {
const id = uuidToId(tocItem.id)