diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index 22e1321..552ecf6 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -36,6 +36,21 @@ --vp-sidebar-border-color: transparent; } +/* Prevent content overflow from overlapping the aside divider */ +.vp-doc :is(p, li, td, th, a) { + overflow-wrap: anywhere; + word-break: break-word; +} + +.vp-doc table { + table-layout: fixed; + width: 100%; +} + +.vp-doc pre { + overflow-x: auto; +} + /* Header z-index: ensure header is above sidebar */ .VPNavBar { z-index: 30;