Skip to content

Commit

Permalink
Notion 视频样式修复
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Apr 22, 2024
1 parent bc29825 commit f008978
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import '@/styles/globals.css'
import '@/styles/utility-patterns.css'

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

import useAdjustStyle from '@/hooks/useAdjustStyle'
import { GlobalContextProvider } from '@/lib/global'
Expand Down
4 changes: 2 additions & 2 deletions styles/notion.css
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ svg.notion-page-icon {
}

.notion-asset-wrapper-full {
/* max-width: 100vw; */
max-width: inherit;
}

.notion-asset-wrapper img {
Expand Down Expand Up @@ -1565,7 +1565,7 @@ code[class*='language-'] {
}

.notion-asset-wrapper-full {
max-width: 100vw;
max-width: inherit;
}
}

Expand Down

0 comments on commit f008978

Please sign in to comment.