Skip to content

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

Open

Description

@dns2utf8

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

Activity

  1. added
    A-rustdoc-uiArea: Rustdoc UI (generated HTML)
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    on Jul 1, 2021
  2. GuillaumeGomez commented on Jul 10, 2021

    @GuillaumeGomez
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions