rustdoc: copy code button obscures scraped example expand button · Issue #129763 · rust-lang/rust (original) (raw)

Rustdoc's copy code button introduced in 9946a68 conflicts with the UI for interacting with scraped code examples. I noticed this in the wild in Bevy's documentation: https://docs.rs/bevy/0.14.1/bevy/app/struct.App.html#scraped-examples-1

In the upper right corner is a button for expanding a snipper:

Screenshot 2024-08-29 at 2 46 10 PM

But hovering over the snippet shows the copy code button, obscuring the expand button:

Screenshot 2024-08-29 at 2 46 24 PM

cc @GuillaumeGomez