Skip to content

GitLab - show usernames by denilsonsa

Screenshot of GitLab - show usernames

Details

Authordenilsonsa

LicensePublic domain

Categorygitlab

Created

Updated

Size1.2 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Displays the usernames of the potential approvers

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           GitLab - show usernames
@namespace      github.com/openstyles/stylus
@version        2.0.0
@description    Displays the usernames of the potential approvers
@author         Denilson Sá
==/UserStyle== */

@-moz-document domain("gitlab.com") {
    /* Older GitLab layout. */
    html .js-approvers div > span > a {
        display: block;
        overflow: hidden;
    }
    html .js-approvers div > span > a::after {
        content: attr(href);
        margin-left: -15.25ch;  /* Adjust this as needed. */
    }
    html .js-approvers div > span > a img.avatar {
        float: none;
        margin: 0;
        position: relative;
        border-radius: 0;
    }

    /* Newer GitLab layout. */
    html .js-approvers div {
        display: block;
    }
    html .js-approvers div > a {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    html .js-approvers div > a::after {
        content: attr(data-username);
        margin-left: 2px;
    }
    html .js-approvers div > a img.gl-avatar {
        float: none;
        margin: 0;
        position: relative;
        border-radius: 0;
    }

}

Reviews

No reviews yet.