Commit da13b336 by Qiang Xue

minor css fixes.

parent 14064492
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
border-right: 1px solid #e4e4e4; border-right: 1px solid #e4e4e4;
padding: 4px 8px; padding: 4px 8px;
line-height: 32px; line-height: 32px;
height: 40px;
white-space: nowrap; white-space: nowrap;
} }
......
...@@ -9,8 +9,8 @@ use yii\helpers\Html; ...@@ -9,8 +9,8 @@ use yii\helpers\Html;
<div class="yii-debug-toolbar-block"> <div class="yii-debug-toolbar-block">
<a href="<?= $panel->getUrl() ?>"> <a href="<?= $panel->getUrl() ?>">
Yii Yii
<span class="label label-info"><?= $panel->data['application']['yii'] ?></span> <span class="label"><?= $panel->data['application']['yii'] ?></span>
PHP PHP
<span class="label label-info"><?= $panel->data['php']['version'] ?></span> <span class="label"><?= $panel->data['php']['version'] ?></span>
</a> </a>
</div> </div>
<?php if ($queryCount): ?> <?php if ($queryCount): ?>
<div class="yii-debug-toolbar-block"> <div class="yii-debug-toolbar-block">
<a href="<?= $panel->getUrl() ?>" title="Executed <?php echo $queryCount; ?> database queries which took <?= $queryTime ?>."> <a href="<?= $panel->getUrl() ?>" title="Executed <?php echo $queryCount; ?> database queries which took <?= $queryTime ?>.">
DB <span class="label"><?= $queryCount ?></span> <span class="label"><?= $queryTime ?></span> DB <span class="label label-info"><?= $queryCount ?></span> <span class="label"><?= $queryTime ?></span>
</a> </a>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="yii-debug-toolbar-block"> <div class="yii-debug-toolbar-block">
<a href="<?= $panel->getUrl() ?>" title="Total request processing time was <?= $time ?>">Time <span class="label"><?= $time ?></span></a> <a href="<?= $panel->getUrl() ?>" title="Total request processing time was <?= $time ?>">Time <span class="label label-info"><?= $time ?></span></a>
<a href="<?= $panel->getUrl() ?>" title="Peak memory consumption">Memory <span class="label"><?= $memory ?></span></a> <a href="<?= $panel->getUrl() ?>" title="Peak memory consumption">Memory <span class="label label-info"><?= $memory ?></span></a>
</div> </div>
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
* @var string $position * @var string $position
*/ */
use yii\helpers\Html; use yii\helpers\Html;
use yii\debug\panels\ConfigPanel;
$minJs = <<<EOD $minJs = <<<EOD
document.getElementById('yii-debug-toolbar').style.display = 'none'; document.getElementById('yii-debug-toolbar').style.display = 'none';
......
...@@ -81,6 +81,7 @@ html,body{ ...@@ -81,6 +81,7 @@ html,body{
} }
.header h2{ .header h2{
font-size: 20px; font-size: 20px;
line-height: 1.25;
} }
/* previous exceptions */ /* previous exceptions */
...@@ -360,9 +361,7 @@ pre .diff .change{ ...@@ -360,9 +361,7 @@ pre .diff .change{
?></h1> ?></h1>
<?php endif; ?> <?php endif; ?>
<h2><?= nl2br($handler->htmlEncode($exception->getMessage())) ?></h2> <h2><?= nl2br($handler->htmlEncode($exception->getMessage())) ?></h2>
<?php if ($exception instanceof \yii\db\Exception && $exception->errorInfo !== null): ?>
<pre><?= var_export($exception->errorInfo, true) ?></pre>
<?php endif; ?>
<?= $handler->renderPreviousExceptions($exception) ?> <?= $handler->renderPreviousExceptions($exception) ?>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment