Making WordPress.org


Ignore:
Timestamp:
08/26/2016 10:13:34 PM (10 years ago)
Author:
obenland
Message:

Plugin Directory: Properly display support bar graph.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/widget-area/widgets/support/index.jsx

    r3862 r3867  
    99        },
    1010
     11        componentDidUpdate() {
     12                this.resolutions = this.resolutions || this.props.plugin.support_threads;
     13        },
     14
    1115        supportBar() {
    1216                const { support_threads: threads, support_threads_resolved: resolved } = this.props.plugin;
    … …  
    1721                                <p className="counter-container">
    1822                                        <span className="counter-back">
    19                                         <span className="counter-bar" style={ { width: `${ 100 * resolved / threads }%` } } />
     23                                                <span className="counter-bar" style={ { width: `${ 100 * resolved / threads }%` } } />
    2024                                        </span>
    2125                                        <span className="counter-count">
    … …  
    4549        render() {
    4650                return (
    47                         <div className="widget widget_text">
     51                        <div className="widget plugin-support">
    4852                                <h4 className="widget-title">Support</h4>
    4953                                { this.resolutions ?
Note: See TracChangeset for help on using the changeset viewer.