Skip to content

Commit 7b6fd61

Browse files
authored
Rollup merge of #84376 - torhovland:issue-84534, r=GuillaumeGomez
Uses flex to fix formatting of h1 at any width Fixes #84354.
2 parents 2f438e3 + bb91805 commit 7b6fd61

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/librustdoc/html/static/rustdoc.css

+9-4
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
116116
padding-bottom: 6px;
117117
}
118118
h1.fqn {
119+
display: flex;
120+
width: 100%;
119121
border-bottom: 1px dashed;
120122
margin-top: 0;
121123
}
@@ -458,6 +460,13 @@ nav.sub {
458460
font-weight: normal;
459461
}
460462

463+
h1.fqn > .out-of-band {
464+
float: unset;
465+
flex: 1;
466+
text-align: right;
467+
margin-left: 8px;
468+
}
469+
461470
h3.impl > .out-of-band {
462471
font-size: 21px;
463472
}
@@ -1450,10 +1459,6 @@ h4 > .notable-traits {
14501459
padding: 0;
14511460
}
14521461

1453-
.content .in-band {
1454-
width: 100%;
1455-
}
1456-
14571462
.content h4 > .out-of-band {
14581463
position: inherit;
14591464
}

0 commit comments

Comments
 (0)