| @@ -97,19 +97,16 @@ | ||
| 97 | 97 | public static function render_stats_info( $data, $action, $title, $data_prev ) { |
| 98 | 98 | $count = static::get_stats_count( $data, $action ); |
| 99 | 99 | $prev_count = static::get_stats_count( $data_prev, $action ); |
| 100 | 100 | ?> |
| 101 | - <div class="center aligned middle aligned column"> | |
| 102 | - <div class="ui mini vertical statistic"> | |
| 103 | - <div class="value"> | |
| 104 | - <?php static::render_stats_compare( $count, $prev_count ); ?> <?php echo intval( $count ); ?> | |
| 105 | - </div> | |
| 106 | - <div class="label"> | |
| 101 | + <div class="column"> | |
| 102 | + <div class="ui small header"> | |
| 103 | + <?php static::render_stats_compare( $count, $prev_count ); ?> <?php echo intval( $count ); ?> | |
| 104 | + <div class="sub header"> | |
| 107 | 105 | <?php echo esc_html( $title ); ?> |
| 106 | + <br /> | |
| 107 | + <span class="ui small text"><?php static::render_stats_duration_time( $data, $action ); ?></span> | |
| 108 | 108 | </div> |
| 109 | - <span class="ui small text"> | |
| 110 | - <?php static::render_stats_duration_time( $data, $action ); ?> | |
| 111 | - </span> | |
| 112 | 109 | </div> |
| 113 | 110 | </div> |
| 114 | 111 | <?php |
| 115 | 112 | } |
| @@ -123,9 +120,9 @@ | ||
| 123 | 120 | public static function render_stats_compare( $count, $prev_count ) { |
| 124 | 121 | echo '<span data-tooltip="' . intval( $count ) . ' actions this period, ' . intval( $prev_count ) . ' actions previous period, showing growth or decline." data-position="top left" data-inverted="">'; |
| 125 | 122 | if ( $count === $prev_count ) { |
| 126 | 123 | ?> |
| 127 | - <i class="angle right icon"></i> | |
| 124 | + <i class="angle right icon" style="float:none;"></i> | |
| 128 | 125 | <?php |
| 129 | 126 | } elseif ( $count > $prev_count ) { |
| 130 | 127 | ?> |
| 131 | 128 | <i class="angle up green icon"></i> |