about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-09-18 02:55:30 +0200
committerGitHub <noreply@github.com>2022-09-18 02:55:30 +0200
commitfb2048559218a05303fb4c7da16269d26aa8cc96 (patch)
tree94de92570856aaa4c33723527c16f04eee941216 /src
parent4c0b52013da53c715d6b7a03d75f346fbf503ffa (diff)
parentf45eacce76b76cd378948d9142d37c08ebdcf4d9 (diff)
Rollup merge of #101953 - GuillaumeGomez:fix-error-code-tooltip, r=notriddle
Fix tooltip display for error codes

Fixes #101919.

You can test it [here](https://rustdoc.crud.net/imperio/fix-error-code-tooltip/index.html).

cc `@jsha`
r? `@notriddle`
Diffstat (limited to 'src')
-rw-r--r--src/tools/error_index_generator/error-index.css3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/error_index_generator/error-index.css b/src/tools/error_index_generator/error-index.css
index 8975af82de0..dcac2e18efe 100644
--- a/src/tools/error_index_generator/error-index.css
+++ b/src/tools/error_index_generator/error-index.css
@@ -27,10 +27,11 @@ pre .tooltip::before {
 	content: " ";
 	position: absolute;
 	top: 50%;
-	left: 16px;
+	left: 2px;
 	margin-top: -5px;
 	border-width: 5px;
 	border-style: solid;
+	height: 0px;
 }
 
 pre .tooltip:hover::before, pre .tooltip:hover::after {