Skip to content

Commit 6f6844d

Browse files
committed
2 parents 148fb06 + f008978 commit 6f6844d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pages/_app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import '@/styles/globals.css'
33
import '@/styles/utility-patterns.css'
44

55
// core styles shared by all of react-notion-x (required)
6-
import '@/styles/notion.css' // 重写部分样式
7-
import 'react-notion-x/src/styles.css'
6+
// import 'react-notion-x/src/styles.css' // 原版的react-notion-x
7+
import '@/styles/notion.css' // 重写notion样式
88

99
import useAdjustStyle from '@/hooks/useAdjustStyle'
1010
import { GlobalContextProvider } from '@/lib/global'

styles/notion.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ svg.notion-page-icon {
706706
}
707707

708708
.notion-asset-wrapper-full {
709-
/* max-width: 100vw; */
709+
max-width: inherit;
710710
}
711711

712712
.notion-asset-wrapper img {
@@ -1565,7 +1565,7 @@ code[class*='language-'] {
15651565
}
15661566

15671567
.notion-asset-wrapper-full {
1568-
max-width: 100vw;
1568+
max-width: inherit;
15691569
}
15701570
}
15711571

0 commit comments

Comments
 (0)