diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-13 15:13:31 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-13 15:13:31 +0100 |
| commit | bf6fcc9db8260c673c4798bf9b1074ae36a73bed (patch) | |
| tree | 94c89456ca20c783c8fe78d3c8ccbd155ddb1e4a | |
| parent | 4f20626cefab445aa3f8e560f11cd7d14f4665ba (diff) | |
| download | rust-bf6fcc9db8260c673c4798bf9b1074ae36a73bed.tar.gz rust-bf6fcc9db8260c673c4798bf9b1074ae36a73bed.zip | |
Align impl doc block with `impl` keyword
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 2 | ||||
| -rw-r--r-- | tests/rustdoc-gui/docblock-table-overflow.goml | 2 | ||||
| -rw-r--r-- | tests/rustdoc-gui/item-info.goml | 2 | ||||
| -rw-r--r-- | tests/rustdoc-gui/notable-trait.goml | 10 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index ed0c347879b..90aa5904daf 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -36,7 +36,7 @@ xmlns="http://www.w3.org/2000/svg" fill="black" height="18px">\ --button-border-radius: 2px; --toolbar-button-border-radius: 6px; --code-block-border-radius: 6px; - --impl-items-indent: 0.5em; + --impl-items-indent: 0.3em; --docblock-indent: 24px; } diff --git a/tests/rustdoc-gui/docblock-table-overflow.goml b/tests/rustdoc-gui/docblock-table-overflow.goml index 60fbd69fe3f..abfa820ef27 100644 --- a/tests/rustdoc-gui/docblock-table-overflow.goml +++ b/tests/rustdoc-gui/docblock-table-overflow.goml @@ -16,6 +16,6 @@ compare-elements-property: ( "#implementations-list > details .docblock > p", ["scrollWidth"], ) -assert-property: ("#implementations-list > details .docblock", {"scrollWidth": "832"}) +assert-property: ("#implementations-list > details .docblock", {"scrollWidth": "835"}) // However, since there is overflow in the <table>, its scroll width is bigger. assert-property: ("#implementations-list > details .docblock table", {"scrollWidth": "1572"}) diff --git a/tests/rustdoc-gui/item-info.goml b/tests/rustdoc-gui/item-info.goml index c775bf005dc..b5b0052fe61 100644 --- a/tests/rustdoc-gui/item-info.goml +++ b/tests/rustdoc-gui/item-info.goml @@ -19,7 +19,7 @@ store-position: ( "//*[@class='stab portability']//code[normalize-space()='Win32_System_Diagnostics']", {"x": second_line_x, "y": second_line_y}, ) -assert: |first_line_x| != |second_line_x| && |first_line_x| == 524 && |second_line_x| == 280 +assert: |first_line_x| != |second_line_x| && |first_line_x| == 521 && |second_line_x| == 277 assert: |first_line_y| != |second_line_y| && |first_line_y| == 718 && |second_line_y| == 741 // Now we ensure that they're not rendered on the same line. diff --git a/tests/rustdoc-gui/notable-trait.goml b/tests/rustdoc-gui/notable-trait.goml index e04ace8a0d4..4624fb80b37 100644 --- a/tests/rustdoc-gui/notable-trait.goml +++ b/tests/rustdoc-gui/notable-trait.goml @@ -62,9 +62,9 @@ define-function: ( // We start with a wide screen. set-window-size: (1100, 600) call-function: ("check-notable-tooltip-position-complete", { - "x": 685, - "i_x": 963, - "popover_x": 471, + "x": 682, + "i_x": 960, + "popover_x": 468, }) // Now only the `i` should be on the next line. @@ -78,8 +78,8 @@ compare-elements-position-false: ( // Now both the `i` and the struct name should be on the next line. set-window-size: (980, 600) call-function: ("check-notable-tooltip-position", { - "x": 253, - "i_x": 531, + "x": 250, + "i_x": 528, }) // Checking on mobile now. |
