Making WordPress.org

Changeset 14251


Ignore:
Timestamp:
12/09/2024 05:06:28 AM (11 months ago)
Author:
dd32
Message:

Trac: Better visual style for GitHub PRs when the content wraps.

H/t parthvataliya.
Fixes #7804.

Location:
sites/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r14028 r14251  
    55
    66<?python
    7     scripts_version = '220'
     7    scripts_version = '221'
    88    project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99    wporg_endpoint = 'https://make.wordpress.org/' + project_slug + '/'
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css

    r14028 r14251  
    24902490    display: table;
    24912491    margin: 0;
    2492     max-width: 56em;
    24932492    padding: 0 1em;
    24942493    position: relative;
     
    25032502#github-prs ul.pull-requests li div {
    25042503    display: table-cell;
    2505     padding: 0.5em 0;
     2504    padding: 0.5em 0.25em;
     2505}
     2506#github-prs ul.pull-requests li div:first-of-type {
     2507    padding-left: 0;
     2508}
     2509#github-prs ul.pull-requests li div:last-of-type {
     2510    white-space: nowrap;
     2511    padding-right: 0;
    25062512}
    25072513#github-prs ul.pull-requests li > div:first-of-type > a:first-of-type {
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r13519 r14251  
    635635
    636636                    author = $el.find( '.username' ).data( 'username' );
    637                     $commit.append( ' by <a href="https://profiles.wordpress.org/' + author + '">@' + author + '</a>' );
     637                    $commit.append( ' by&nbsp;<a href="https://profiles.wordpress.org/' + author + '">@' + author + '</a>' );
    638638
    639639                    date = $el.find( '.time-ago' ).html();
     
    19581958                            '#' + data.number + ' ' + data.title
    19591959                        ) +
    1960                         ' by ' +
     1960                        ' by&nbsp;' +
    19611961                        htmlElement( 'a', { href: data.user.url }, '@' + data.user.name ) +
    19621962                    '</div>' +
Note: See TracChangeset for help on using the changeset viewer.