mirror of
https://github.com/filp/whoops.git
synced 2026-09-16 04:36:20 +00:00
Merge pull request #291 from staabm/lessempty
Adjusted rendering of empty superglobals to take less visual space
This commit is contained in:
@@ -261,10 +261,13 @@ header {
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
.data-table .empty {
|
||||
.data-table span.empty {
|
||||
color: rgba(0, 0, 0, .3);
|
||||
font-style: italic;
|
||||
}
|
||||
.data-table label.empty {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.handler {
|
||||
padding: 10px;
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<div class="data-table-container" id="data-tables">
|
||||
<?php foreach ($tables as $label => $data): ?>
|
||||
<div class="data-table" id="sg-<?php echo $tpl->escape($tpl->slug($label)) ?>">
|
||||
<label><?php echo $tpl->escape($label) ?></label>
|
||||
<?php if (!empty($data)): ?>
|
||||
<label><?php echo $tpl->escape($label) ?></label>
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -20,7 +20,8 @@
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<span class="empty">empty</span>
|
||||
<label class="empty"><?php echo $tpl->escape($label) ?></label>
|
||||
<span class="empty">empty</span>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user