Skip to content

Commit 56bdd2d

Browse files
committed
fix(docs): wrap and indent overflowing signatures
1 parent d25825d commit 56bdd2d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/emmylua_doc_cli/template/static/rustdoc.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,12 @@ pre.signature {
588588
border-left: 3px solid var(--accent);
589589
border-radius: var(--radius);
590590
padding: 9px 14px;
591-
overflow-x: auto;
592591
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
593592
font-size: 13px;
594593
line-height: 1.55;
595594
margin: 10px 0;
595+
text-wrap: wrap;
596+
text-indent: 3em hanging each-line;
596597
}
597598
pre.signature code { background: transparent; padding: 0; }
598599
pre.signature a { color: var(--accent); font-weight: 500; }

0 commit comments

Comments
 (0)