Skip to content

Commit bf6fcc9

Browse files
Align impl doc block with impl keyword
1 parent 4f20626 commit bf6fcc9

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ xmlns="http://www.w3.org/2000/svg" fill="black" height="18px">\
3636
--button-border-radius: 2px;
3737
--toolbar-button-border-radius: 6px;
3838
--code-block-border-radius: 6px;
39-
--impl-items-indent: 0.5em;
39+
--impl-items-indent: 0.3em;
4040
--docblock-indent: 24px;
4141
}
4242

tests/rustdoc-gui/docblock-table-overflow.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ compare-elements-property: (
1616
"#implementations-list > details .docblock > p",
1717
["scrollWidth"],
1818
)
19-
assert-property: ("#implementations-list > details .docblock", {"scrollWidth": "832"})
19+
assert-property: ("#implementations-list > details .docblock", {"scrollWidth": "835"})
2020
// However, since there is overflow in the <table>, its scroll width is bigger.
2121
assert-property: ("#implementations-list > details .docblock table", {"scrollWidth": "1572"})

tests/rustdoc-gui/item-info.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ store-position: (
1919
"//*[@class='stab portability']//code[normalize-space()='Win32_System_Diagnostics']",
2020
{"x": second_line_x, "y": second_line_y},
2121
)
22-
assert: |first_line_x| != |second_line_x| && |first_line_x| == 524 && |second_line_x| == 280
22+
assert: |first_line_x| != |second_line_x| && |first_line_x| == 521 && |second_line_x| == 277
2323
assert: |first_line_y| != |second_line_y| && |first_line_y| == 718 && |second_line_y| == 741
2424

2525
// Now we ensure that they're not rendered on the same line.

tests/rustdoc-gui/notable-trait.goml

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ define-function: (
6262
// We start with a wide screen.
6363
set-window-size: (1100, 600)
6464
call-function: ("check-notable-tooltip-position-complete", {
65-
"x": 685,
66-
"i_x": 963,
67-
"popover_x": 471,
65+
"x": 682,
66+
"i_x": 960,
67+
"popover_x": 468,
6868
})
6969

7070
// Now only the `i` should be on the next line.
@@ -78,8 +78,8 @@ compare-elements-position-false: (
7878
// Now both the `i` and the struct name should be on the next line.
7979
set-window-size: (980, 600)
8080
call-function: ("check-notable-tooltip-position", {
81-
"x": 253,
82-
"i_x": 531,
81+
"x": 250,
82+
"i_x": 528,
8383
})
8484

8585
// Checking on mobile now.

0 commit comments

Comments
 (0)