diff --git a/src/DebugBar/Resources/widgets.js b/src/DebugBar/Resources/widgets.js index f740ff3..8721cf4 100644 --- a/src/DebugBar/Resources/widgets.js +++ b/src/DebugBar/Resources/widgets.js @@ -637,6 +637,8 @@ if (typeof(PhpDebugBar) == 'undefined') { } if (e.stack_trace_html) { var $trace = $('').addClass(csscls('filename')).html(e.stack_trace_html); + $trace.find('samp[data-depth="1"]').removeClass('sf-dump-expanded').addClass('sf-dump-compact').parent() + .find('>.sf-dump-note').html((_, t) => t.replace(/^array:/, 'Stack Trace: ') + ' files'); $trace.appendTo(li); } else if (e.stack_trace) { e.stack_trace.split("\n").forEach(function (trace) {