Update style for debug template

This commit is contained in:
Visman 2021-11-23 22:30:25 +07:00
parent b99594a9e5
commit d15b75221a
2 changed files with 13 additions and 13 deletions

View file

@ -2,23 +2,23 @@
<h2>{!! __('Debug table') !!}</h2>
<p id="id-fdebugtime">[ {!! __(['Querytime', num($p->time, 3), $p->numQueries]) !!} - {!! __(['Memory usage', size($p->memory)]) !!} {!! __(['Peak usage', size($p->peak)]) !!} ]</p>
@if ($p->queries)
<table>
<thead>
<table id="fork-dgtable">
<thead id="fork-dgthead">
<tr>
<th class="tcl" scope="col">{!! __('Query times') !!}</th>
<th class="tcr" scope="col">{!! __('Query') !!}</th>
<th class="f-tcl" scope="col">{!! __('Query times') !!}</th>
<th class="f-tcr" scope="col">{!! __('Query') !!}</th>
</tr>
</thead>
<tbody>
@foreach ($p->queries as $cur)
<tr>
<td class="tcl">{{ num($cur[1], 3) }}</td>
<td class="tcr">{{ $cur[0] }}</td>
<td class="f-tcl">{{ num($cur[1], 3) }}</td>
<td class="f-tcr">{{ $cur[0] }}</td>
</tr>
@endforeach
<tr>
<td class="tcl">{{ num($p->total, 3) }}</td>
<td class="tcr"></td>
<td class="f-tcl">{{ num($p->total, 3) }}</td>
<td class="f-tcr"></td>
</tr>
</tbody>
</table>

View file

@ -822,24 +822,24 @@ body,
text-align: center;
}
#fork-debug > table {
#fork-debug #fork-dgtable {
width: 100%;
border: 0.0625rem solid #AA7939;
border-collapse: collapse;
table-layout: fixed;
}
#fork-debug thead {
#fork-dgtable #fork-dgthead {
background-color: #F8F4E3;
}
#fork-debug td,
#fork-debug th {
#fork-dgtable .f-tcl,
#fork-dgtable .f-tcr {
padding: 0.3125rem 0.625rem;
border-bottom: 0.0625rem solid #AA7939;
}
#fork-debug .tcl {
#fork-dgtable .f-tcl {
width: 5rem;
}