Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc "source" links are not clickable #104313

Closed
RalfJung opened this issue Nov 12, 2022 · 3 comments · Fixed by #104319 or #104177
Closed

rustdoc "source" links are not clickable #104313

RalfJung opened this issue Nov 12, 2022 · 3 comments · Fixed by #104319 or #104177

Comments

@RalfJung
Copy link
Member

RalfJung commented Nov 12, 2022

To reproduce, navigate to https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Ty.html and click the the "source" link for any of the methods. Nothing at all happens when I do that. I tried Firefox and Chromium.

This seems to be a fairly recent regression.

@rust-lang/rustdoc

@GuillaumeGomez
Copy link
Member

It's because it's under the h4 for some reason. Let's see what changed in the last few days.

@GuillaumeGomez
Copy link
Member

I think it's because of 303653e. I'll try to send a fix today.

@GuillaumeGomez
Copy link
Member

It's because .code-header added a position: relative to have a correct positioning of the tooltip on mobile devices.

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Nov 12, 2022
…ource-link, r=notriddle

Fix non clickable source link

Fixes rust-lang#104313.

It was also fixed in rust-lang#104177. If rust-lang#104177 is merged first, I'll simply remove the first commit to keep the test.

r? `@notriddle`
@bors bors closed this as completed in d532d67 Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants