nextjs-notion-starter-kit
nextjs-notion-starter-kit copied to clipboard
The code block on the right side exceeds the normal display range of rendering.
Description
The code block on the right side exceeds the normal display range of rendering.-->
Notion Test Page ID
https://hyhai.notion.site/Notion-StartupAI-2023-09-04-Notion-OpenAI-2e84d630f7a94d349841f75b80d29aaf?pvs=4
I have the same problem and still don't know why. But don't put any code blocks under the numbered list, and also please use the numbered list as little as possible,maybe you can replace the numbered list with (1)/①/a......
Got it.
You can add css to prevent this situation
ol:not(:has(> li)),
ul:not(:has(> li)) {
padding: 0 !important;
}
You can add the css below if the issue occurs for images under list. Not tested whether it is also effective for code blocks or not. (I think it will)
-
CSS
.notion-list { max-width: 100%; }
-
Before
-
After