Skip to content

Commit 8574377

Browse files
author
Elizabeth Davis
committed
Fix sidebar clipping of long dotted identifiers
Adds CSS overrides to allow overflow and word-break in sidebar links, complementing the existing sidebar-wrap.js zero-width-space injection.
1 parent edd4720 commit 8574377

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docs/src/_static/custom.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,18 @@ html.dark code.docutils {
7777
font-weight: 600;
7878
}
7979

80+
/* Allow long dotted FQNs to wrap in the sidebar instead of clipping */
81+
.sy-sidebar-toc,
82+
.sy-sidebar-toc ul,
83+
.sy-sidebar-toc li {
84+
overflow: visible;
85+
}
86+
87+
.sy-lside a {
88+
white-space: normal;
89+
word-break: break-word;
90+
}
91+
8092
/* Reset code font in sidebar nav — prevents identifier-titled pages
8193
* from rendering in monospace */
8294
.sy-lside a code {

0 commit comments

Comments
 (0)