docs.rs icon indicating copy to clipboard operation
docs.rs copied to clipboard

Make docs.rs UI left-aligned instead of centered

Open jsha opened this issue 3 years ago • 2 comments

rustdoc's UI is left-aligned, including rustdoc displayed within docs.rs:

image

But if you visit a non-rustdoc page in docs.rs, for instance the crate page, the UI is centered:

image

In general I favor a centered UI, but I think for our use case the more important principle is consistency, so we should make the non-rustdoc pages left-aligned.

jsha avatar Oct 21 '22 03:10 jsha

I'm with you here on consistency, though I don't know the reasoning for the current design of these pages.

syphar avatar Oct 21 '22 05:10 syphar

I think both pages should be centered. Look at these pages on a wide screen:

screenshots

image image

The head should look forward and not to the left to avoid neck pain.

GitHub and other sites use content centered:

github, wikipedia and stackoverflow

Screenshot 2023-04-06 at 21-36-24 rust-lang_docs rs crates io documentation generator Screenshot 2023-04-06 at 21-45-06 GitHub - Wikipedia Screenshot 2023-04-06 at 21-47-45 Is there a way to rotate the background image of a Canvas without rotating the whole canvas See example

x1b6e6 avatar Apr 06 '23 14:04 x1b6e6