diff --git a/src/DebugBar/Resources/widgets.css b/src/DebugBar/Resources/widgets.css index c869417..e00c164 100644 --- a/src/DebugBar/Resources/widgets.css +++ b/src/DebugBar/Resources/widgets.css @@ -263,3 +263,9 @@ div.phpdebugbar-widgets-exceptions a.phpdebugbar-widgets-editor-link:before { content: "\f08e"; margin-left: 4px; } + +ul.phpdebugbar-widgets-timeline table.phpdebugbar-widgets-params { + display: table; + border: 0; + width: 99%; +} diff --git a/src/DebugBar/Resources/widgets.js b/src/DebugBar/Resources/widgets.js index d0f1861..7a541a2 100644 --- a/src/DebugBar/Resources/widgets.js +++ b/src/DebugBar/Resources/widgets.js @@ -514,15 +514,16 @@ if (typeof(PhpDebugBar) == 'undefined') { }); // build table and add - var aggregateTable = $('
').addClass(csscls('params')); + var aggregateTable = $('
').addClass(csscls('params')); $.each(aggregate, function(i, aggregate) { width = Math.min((aggregate.data.duration * 100 / data.duration).toFixed(2), 100); aggregateTable.append('' + aggregate.data.count + ' x ' + aggregate.label + ' (' + width + '%)' + '
' + - '' + + '' + '' + formatDuration(aggregate.data.duration) + (aggregate.data.memory ? '/' + formatBytes(aggregate.data.memory) : '') + '' + '
'); + aggregateTable.find('span.' + csscls('value') + ':last').css({width: width + "%" }); }); this.$el.append('
  • ').find('li:last').append(aggregateTable);