Keep SELECT clause collapsed by default in Tracy panel

[MAILPOET-2216]
This commit is contained in:
Jan Jakeš
2019-08-13 11:18:58 +02:00
committed by M. Shull
parent 19ee0734e2
commit 48b65c76aa

View File

@ -50,8 +50,8 @@ class DoctrinePanel implements IBarPanel {
if (count($matches) >= 5) {
// if SELECT clause over 50 chars, make it wrappable
$select_html = mb_strlen($matches[2]) > 50 ? ($matches[1] . '
<span class="tracy-toggle">...</span>
<div style="padding-left: 10px">' . $matches[2] . '</div>
<span class="tracy-toggle tracy-collapsed">...</span>
<div class="tracy-collapsed" style="padding-left: 10px">' . $matches[2] . '</div>
') : ($matches[1] . $matches[2]);
$from_keyword = $matches[3];
$rest = $matches[4];