Skip to content

Commit 587dff9

Browse files
BradMarrGuillaumeGomez
authored andcommitted
Update rustdoc.css
Update rustdoc.css Update rustdoc.css Update rustdoc.css Update rustdoc.css Update rustdoc.css Update rustdoc.css Update type-declation-overflow.goml fix test make into flex
1 parent 67f0d43 commit 587dff9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

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

+7-2
Original file line numberDiff line numberDiff line change
@@ -904,12 +904,14 @@ table,
904904
}
905905

906906
.item-table {
907-
display: table;
907+
display: flex;
908+
flex-direction: column;
908909
padding: 0;
909910
margin: 0;
910911
}
911912
.item-table > li {
912-
display: table-row;
913+
display: flex;
914+
justify-content: space-between;
913915
}
914916
.item-table > li > div {
915917
display: table-cell;
@@ -2127,6 +2129,9 @@ in src-script.js and main.js
21272129
padding: 2px 4px;
21282130
box-shadow: 0 0 4px var(--main-background-color);
21292131
}
2132+
.item-table > li > .item-name {
2133+
max-width: 50%;
2134+
}
21302135
}
21312136

21322137
@media print {

tests/rustdoc-gui/type-declation-overflow.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ assert-property: ("pre.item-decl", {"scrollWidth": "1324"})
1616

1717
// In the table-ish view on the module index, the name should not be wrapped more than necessary.
1818
go-to: "file://" + |DOC_PATH| + "/lib2/too_long/index.html"
19-
assert-property: (".item-table .struct", {"offsetWidth": "684"})
19+
assert-property: (".item-table .struct", {"offsetWidth": "392"})
2020

2121
// We now make the same check on type declaration...
2222
go-to: "file://" + |DOC_PATH| + "/lib2/too_long/type.ReallyLongTypeNameLongLongLong.html"

0 commit comments

Comments
 (0)