Skip to content

Commit

Permalink
RoutingPanel: Add better panel responsivity (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored and dg committed Aug 5, 2019
1 parent 14f6ce4 commit b713e9b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Bridges/ApplicationTracy/templates/RoutingPanel.panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use Tracy\Helpers;

#tracy-debug .nette-RoutingPanel-rel {
background: #eee;
white-space: nowrap
white-space: nowrap;
}
</style>

Expand All @@ -50,7 +50,7 @@ use Tracy\Helpers;
<table>
<thead>
<tr>
<th></th>
<th style="width:20px"></th>
<th>Mask / Class</th>
<th>Defaults</th>
<?php if ($hasModule): ?><th>Module</th><?php endif ?>
Expand All @@ -63,7 +63,7 @@ use Tracy\Helpers;
<tr class="<?= $router['matched'] ?>">
<td><?= $router['matched'] === 'yes' ? '' : ($router['matched'] === 'may' ? '' : '') ?></td>

<td><code title="<?= Helpers::escapeHtml($router['class']) ?>"><?= Helpers::escapeHtml($router['mask'] ?? $router['class']) ?></code></td>
<td><code style="white-space:nowrap" title="<?= Helpers::escapeHtml($router['class']) ?>"><?= isset($router['mask']) ? str_replace('/', '<wbr>/', Helpers::escapeHtml($router['mask'])) : str_replace('\\', '<wbr>\\', Helpers::escapeHtml($router['class'])) ?></code></td>

<td><code>
<?php foreach ($router['defaults'] as $key => $value): ?>
Expand All @@ -88,9 +88,11 @@ use Tracy\Helpers;
</tbody>
</table>
<?php endif ?>
</div>

<div class="tracy-inner-container">
<p><code><?= Helpers::escapeHtml($method) ?></code>
<code><?= Helpers::escapeHtml($url->getBaseUrl()) ?><span class="nette-RoutingPanel-rel"><?= Helpers::escapeHtml($url->getRelativeUrl()) ?></span></code></p>
<code><?= Helpers::escapeHtml($url->getBaseUrl()) ?><wbr><span class="nette-RoutingPanel-rel"><?= str_replace(['&amp;', '?'], ['<wbr>&amp;', '<wbr>?'], Helpers::escapeHtml($url->getRelativeUrl())) ?></span></code></p>

<?php if ($source): ?>
<p><a href="<?= Helpers::escapeHtml(Tracy\Helpers::editorUri($source->getFileName(), $source->getStartLine())) ?>"><?= $source instanceof \ReflectionClass ? $source->getName() : $source->getDeclaringClass()->getName() . '::' . $source->getName() . '()' ?></a></p>
Expand Down

0 comments on commit b713e9b

Please sign in to comment.