Skip to content

Commit 0399a63

Browse files
Fix scrolling for item declaration block
1 parent c54c8cb commit 0399a63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/html/static/css/rustdoc.css

+4
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ pre {
337337
.item-decl pre {
338338
overflow-x: auto;
339339
}
340+
/* This rule allows to have scrolling on the X axis. */
341+
.item-decl .type-contents-toggle {
342+
contain: initial;
343+
}
340344

341345
.source .content pre {
342346
padding: 20px;

0 commit comments

Comments
 (0)