Skip to content

Commit 31484c0

Browse files
Fix <table> overflow in doc blocks
1 parent 68511b5 commit 31484c0

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,8 @@ nav.sub {
556556
.docblock table {
557557
margin: .5em 0;
558558
width: calc(100% - 2px);
559-
border: 1px dashed;
559+
overflow-x: auto;
560+
display: block;
560561
}
561562

562563
.docblock table td {

src/librustdoc/html/static/css/themes/ayu.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pre, .rustdoc.source .example-wrap {
140140
border-bottom-color: #5c6773;
141141
}
142142

143-
.docblock table, .docblock table td, .docblock table th {
143+
.docblock table td, .docblock table th {
144144
border-color: #5c6773;
145145
}
146146

src/librustdoc/html/static/css/themes/dark.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pre, .rustdoc.source .example-wrap {
9797
border-bottom-color: #DDD;
9898
}
9999

100-
.docblock table, .docblock table td, .docblock table th {
100+
.docblock table td, .docblock table th {
101101
border-color: #ddd;
102102
}
103103

src/librustdoc/html/static/css/themes/light.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pre, .rustdoc.source .example-wrap {
9797
border-bottom-color: #ddd;
9898
}
9999

100-
.docblock table, .docblock table td, .docblock table th {
100+
.docblock table td, .docblock table th {
101101
border-color: #ddd;
102102
}
103103

0 commit comments

Comments
 (0)