Making WordPress.org

Changeset 10854


Ignore:
Timestamp:
03/29/2021 12:42:04 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: Provide a bit more height to the active versions chart so that the tooltips have room to display properly.

See https://wordpress.slack.com/archives/C02QB8GMM/p1616936539107800

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r10607 r10854  
    9797    if ( get_query_var( 'plugin_advanced' ) ) {
    9898        wp_enqueue_script( 'google-charts-loader', 'https://www.gstatic.com/charts/loader.js', array(), false, true );
    99         wp_enqueue_script( 'wporg-plugins-stats', get_stylesheet_directory_uri() . '/js/stats.js', array( 'jquery', 'google-charts-loader' ), '20180713', true );
     99        wp_enqueue_script( 'wporg-plugins-stats', get_stylesheet_directory_uri() . '/js/stats.js', array( 'jquery', 'google-charts-loader' ), '20210329', true );
    100100
    101101        wp_localize_script( 'wporg-plugins-stats', 'pluginStats', array(
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/stats.js

    r7463 r10854  
    192192
    193193                new google.visualization.BarChart( document.getElementById( 'plugin-version-stats' ) ).draw( data, {
    194                     legend: {
    195                         position: 'bottom'
    196                     },
    197194                    chartArea: {
    198195                        left: '0',
    199196                        width: '100%',
    200197                        height: '80%',
    201                         top: '10%'
     198                        top: '20%'
    202199                    },
    203200                    hAxis: {
Note: See TracChangeset for help on using the changeset viewer.