1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-23 09:41:48 +02:00

Compact symfony var dumper, and better text (#751)

This commit is contained in:
cesarreyes3
2025-03-29 10:35:37 -05:00
committed by GitHub
parent ee4c574905
commit c77fdd9744

View File

@@ -637,6 +637,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
}
if (e.stack_trace_html) {
var $trace = $('<span />').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:/, '<span class="sf-dump-key">Stack Trace:</span> ') + ' files');
$trace.appendTo(li);
} else if (e.stack_trace) {
e.stack_trace.split("\n").forEach(function (trace) {