Closed jasonren0403 closed 2 years ago
Thanks for opening this issue, maintainers will get back to you as soon as possible!
This happens only in post page. Main page is OK
This style was introduced by #248. Stable recurrence when body_scrollbar.overlay is set to true.
This style was introduced by #248. Stable recurrence when body_scrollbar.overlay is set to true.
Setting body_scrollbar.overlay
to false
may be a workaround, the problem disappears then.
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.
Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。
Issue Checklist
Expected behavior
The passage in post page displays correctly whenever "Table of Contents" is expanded
Actual behavior
When the "Table of Contents" is expanded, the passage did not display correctly.
Links to demo site with this issue: https://jasonren0403.github.io/hexo-next-theme-v8.8.0-padding-issue/2021/10/30/hello-world/
Links to repository or source code of the blog: https://github.com/jasonren0403/hexo-next-theme-v8.8.0-padding-issue-code
Screenshots:![The passage positioned too right](https://user-images.githubusercontent.com/40999116/139542132-2f488600-751e-45fa-b0c7-8945542fe352.png)
The problem may be caused by a redundant style rule
![without the redundant width attribute](https://user-images.githubusercontent.com/40999116/139542189-8f0b9c7e-5f13-427c-aa50-84189c0cbde1.png)
width:100vw
, removing it out can get a correct viewSteps to reproduce the behavior
Install the hexo and the latest NexT(v8.8.0) by npm, then just use the default passage with the config provided in the repo.
Environment Information
Node.js and NPM Information
Package dependencies Information
Hexo Configuration
NexT Configuration
Other Information
OS: Windows 10 21H1
Browser:
![Firefox](https://user-images.githubusercontent.com/40999116/139542410-8070235b-b222-4498-bcf4-89d1242daa46.png)