Skip to content

Commit bb6a972

Browse files
authored
Merge branch 'tangly1024:main' into martini
2 parents 9c37ad4 + 50c687f commit bb6a972

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

themes/gitbook/components/Catalog.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { useGlobal } from '@/lib/global'
12
import { isBrowser } from '@/lib/utils'
23
import throttle from 'lodash.throttle'
34
import { uuidToId } from 'notion-utils'
@@ -13,6 +14,7 @@ const Catalog = ({ post }) => {
1314
const toc = post?.toc
1415
// 同步选中目录事件
1516
const [activeSection, setActiveSection] = useState(null)
17+
const {locale}= useGlobal()
1618

1719
// 监听滚动事件
1820
useEffect(() => {
@@ -67,6 +69,7 @@ const Catalog = ({ post }) => {
6769

6870
return (
6971
<>
72+
<div className='w-full hidden md:block'><i className='mr-1 fas fa-stream' />{locale.COMMON.TABLE_OF_CONTENTS}</div>
7073
<div
7174
id='toc-wrapper'
7275
className='toc-wrapper overflow-y-auto my-2 max-h-80 overscroll-none scroll-hidden'>

themes/heo/components/BlogPostCard.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
7676

7777
{/* 摘要 */}
7878
{(!showPreview || showSummary) && (
79-
<main className='line-clamp-2 replace my-3 2xl:my-1 text-gray-700 dark:text-gray-300 text-sm font-light leading-tight'>
79+
<main className='line-clamp-2 replace text-gray-700 dark:text-gray-300 text-sm font-light leading-tight'>
8080
{post.summary}
8181
</main>
8282
)}

0 commit comments

Comments
 (0)