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: align .stab to the right on desktop #86767

Open
dns2utf8 opened this issue Jun 30, 2021 · 1 comment
Open

rustdoc: align .stab to the right on desktop #86767

dns2utf8 opened this issue Jun 30, 2021 · 1 comment
Labels
A-rustdoc-ui Area: Rustdoc UI (generated HTML) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@dns2utf8
Copy link
Contributor

The informative tags/labels/stabs have been moved to the left column to improve the mobile experience.
Now the table feels a bit crammed.

  • One possibility is to increase the gaps between the symbol and the tags.
  • Another is to align the tags to the right on the desktop.

Current nightly 2021-06-30

image

First draft for implementation

One possibility is something like this, but these rules result in stretched out:

image

.item-left {
    grid-column: 1;
    /* added */
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
    width: 100%;
}

Based on: #86725 #86594
CC: @GuillaumeGomez

@GuillaumeGomez GuillaumeGomez added A-rustdoc-ui Area: Rustdoc UI (generated HTML) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Jul 1, 2021
@GuillaumeGomez
Copy link
Member

The more I think about it, the more I appreciate the fact that it's now close to the type and not on the item description anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-ui Area: Rustdoc UI (generated HTML) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants