That’s controlled via CSS. By default the scrollbar happens when it’s taller than 500px. You can make it happen early in a theme component as explained in How to make CSS changes on your site.
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| Rising scroll threshold in code blocks (or complete unfolding) | 3 | 1596 | 2024 年4 月 1 日 | |
| Adding an overlay to code blocks to prevent scroll until user click it | 4 | 436 | 2024 年7 月 18 日 | |
| Horizontal scrollbar in a certain width range | 7 | 1706 | 2015 年9 月 15 日 | |
| Line wrapping in code blocks to avoid horizontal scrollbar | 2 | 686 | 2021 年10 月 19 日 | |
| Codeblock copy or expand button blocks scroll UI components | 3 | 577 | 2023 年2 月 28 日 |