]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #83393 - GuillaumeGomez:codeblock-tooltip-position, r=Nemo157
authorDylan DPC <dylan.dpc@gmail.com>
Wed, 24 Mar 2021 00:52:32 +0000 (01:52 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Mar 2021 00:52:32 +0000 (01:52 +0100)
commit8c1c7a73963d9cd842197f2aaa180efe3b961ab3
tree69e601b97b8e56d6e2d34a67b41535c0fe5676cf
parent2b53ec3d1e2acc416b069278dd55169452037850
parent6c80deb4a5b8e9ec6dcf03e504461ec71eab69f1
Rollup merge of #83393 - GuillaumeGomez:codeblock-tooltip-position, r=Nemo157

Codeblock tooltip position

The codeblocks tooltips were misplaced. Normally, there is no top margin applied to a tooltip unless the codeblock is the first element of the doc block. The CSS rule was too vague though, applying it to all tooltips where the codeblock was the first child of its parent. Which can be easily seen with lists:

Before:

![Screenshot from 2021-03-22 22-05-16](https://user-images.githubusercontent.com/3050060/112059812-a667ba80-8b5c-11eb-88dd-1c598ceb3766.png)

After:

![Screenshot from 2021-03-22 22-06-31](https://user-images.githubusercontent.com/3050060/112059815-a7005100-8b5c-11eb-9e40-8fc57513e498.png)

r? ``@Nemo157``
src/librustdoc/html/static/rustdoc.css
src/test/rustdoc-gui/lib.rs