Skip to content

Commit cee949a

Browse files
committed
Improve styling on the routes panel.
1 parent a7290a9 commit cee949a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

templates/element/routes_panel.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
<thead>
5353
<tr>
5454
<th><?= __d('debug_kit', 'Route name') ?></th>
55-
<th><?= __d('debug_kit', 'URI template') ?></th>
56-
<th><?= __d('debug_kit', 'Defaults') ?></th>
55+
<th class="c-debug_table c-left-align"><?= __d('debug_kit', 'URI template') ?></th>
56+
<th class="c-debug-table c-left-align"><?= __d('debug_kit', 'Defaults') ?></th>
5757
</tr>
5858
</thead>
5959
<tbody>
@@ -86,8 +86,8 @@
8686
?>
8787
<tr class="<?= $class ?>">
8888
<td><?= h(Hash::get($route->options, '_name', $route->getName())) ?></td>
89-
<td><?= h($route->template) ?></td>
90-
<td><pre><?= json_encode($route->defaults, JSON_PRETTY_PRINT) ?></pre></td>
89+
<td class="c-debug-table c-left-align"><?= h($route->template) ?></td>
90+
<td class="c-debug-table c-left-align"><pre><?= json_encode($route->defaults, JSON_PRETTY_PRINT) ?></pre></td>
9191
</tr>
9292
<?php endforeach; ?>
9393
</tbody>

webroot/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ strong {
283283
.c-debug-table .highlighted td {
284284
background: var(--highlighted);
285285
}
286+
.c-debug-table th.c-left-align,
287+
.c-debug-table td.c-left-align {
288+
text-align: left;
289+
}
286290

287291
.c-flash {
288292
position: relative;

0 commit comments

Comments
 (0)