Style benchmark output
This commit is contained in:
parent
13f827a0ef
commit
3286dfe202
|
@ -165,8 +165,7 @@ class Benchmark
|
|||
$data = self::prepareDataForRendering($what);
|
||||
|
||||
// TODO: Move formatting to CSS file
|
||||
$style = 'font-family: monospace; font-size: 1.5em; width: 100%';
|
||||
$html = '<table style="' . $style . '">' . "\n" . '<tr>';
|
||||
$html = '<table class="benchmark">' . "\n" . '<tr>';
|
||||
foreach ($data->columns as & $col) {
|
||||
$html .= sprintf(
|
||||
'<td align="%s">%s</td>',
|
||||
|
|
|
@ -137,3 +137,13 @@ table.objectlist {
|
|||
}
|
||||
}
|
||||
|
||||
table.benchmark {
|
||||
margin: 1em 1% 1em 1%;
|
||||
font-family: monospace;
|
||||
font-size: 1em;
|
||||
width: 96%;
|
||||
}
|
||||
|
||||
.dashboard table.benchmark {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue