Switched handling of minimum event width to CSS
This commit is contained in:
1 parent
6565cf9cdb
commit
68d6154a5e
4 files changed
+5
-15
No files matched your search
+2
-14
@@ -252,15 +252,9 @@ class Laps {
|
||||
if ( $offset == $last_offset ) {
|
||||
$key = count( $query_data ) - 1;
|
||||
$query_data[$key]['sql'] .= '<br />' . $sql;
|
||||
|
||||
$last_duration += $duration;
|
||||
$width = round( $last_duration / $total * 100, 2 );
|
||||
|
||||
if ( 0 == $width ) {
|
||||
$width = '2px';
|
||||
} else {
|
||||
$width .= '%';
|
||||
}
|
||||
|
||||
$width = round( $last_duration / $total * 100, 2 );
|
||||
$query_data[$key]['width'] = $width;
|
||||
|
||||
continue;
|
||||
@@ -270,12 +264,6 @@ class Laps {
|
||||
$last_offset = $offset;
|
||||
$last_duration = $duration;
|
||||
|
||||
if ( 0 == $width ) {
|
||||
$width = '2px';
|
||||
} else {
|
||||
$width .= '%';
|
||||
}
|
||||
|
||||
$query_data[] = compact( 'sql', 'duration', 'offset', 'width', 'category' );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user