You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently rustdoc emits HTML/CSS for the official Rust std documentation, that includes Run-buttons, as shown below (current nightly documentation of std::string::String):
This works fine (although sometimes the Run-button might be above code), as long as the content of the code block is not scrollable horizontally.
If, on the other hand, the code block is scrollable horizontally, e.g. because the code shown has really long lines or the browser window is small, the Run button will be scrolled, too:
I think the button is supposed to be in the top right hand corner and should stay there, even if the content is scrolled horizontally. I didn't notice similar behavior vertically as there is no "long enough" code example (which is good 😄)
I think, that a little CSS and possibly a change in the generated HTML should do the trick.
The text was updated successfully, but these errors were encountered:
Currently



rustdoc
emits HTML/CSS for the official Rust std documentation, that includesRun
-buttons, as shown below (current nightly documentation ofstd::string::String
):This works fine (although sometimes the Run-button might be above code), as long as the content of the code block is not scrollable horizontally.
If, on the other hand, the code block is scrollable horizontally, e.g. because the code shown has really long lines or the browser window is small, the Run button will be scrolled, too:
I think the button is supposed to be in the top right hand corner and should stay there, even if the content is scrolled horizontally. I didn't notice similar behavior vertically as there is no "long enough" code example (which is good 😄)
I think, that a little CSS and possibly a change in the generated HTML should do the trick.
The text was updated successfully, but these errors were encountered: