Add responsive mobile layouts and navigation
This commit is contained in:
@@ -395,6 +395,8 @@
|
||||
|
||||
{#if netDiagnosis}
|
||||
{#if netDiagnosis.ok && netDiagnosis.results}
|
||||
<!-- svelte-ignore a11y_no_noninteractive_tabindex (Keyboard users need to scroll the table.) -->
|
||||
<div class="table-scroll" role="region" aria-label="Network diagnostics" tabindex="0">
|
||||
<table class="net-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -421,6 +423,7 @@
|
||||
{/each}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{#if netDiagnosis.config}
|
||||
<div class="net-meta">
|
||||
KOMODO_ADDRESS = <code>{netDiagnosis.config.komodoAddress ?? '(unset)'}</code>
|
||||
@@ -607,7 +610,7 @@
|
||||
/* Diagnostics KV grid */
|
||||
.diag-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
|
||||
gap: var(--space-2);
|
||||
margin-top: var(--space-2);
|
||||
}
|
||||
@@ -714,7 +717,10 @@
|
||||
}
|
||||
|
||||
/* Network table */
|
||||
.table-scroll { max-width: 100%; overflow-x: auto; }
|
||||
.table-scroll:focus-visible { box-shadow: var(--focus-ring); }
|
||||
.net-table {
|
||||
min-width: 600px;
|
||||
width: 100%;
|
||||
margin-top: var(--space-4);
|
||||
border-collapse: separate;
|
||||
@@ -810,7 +816,8 @@
|
||||
.hist-err { color: var(--state-danger); font-size: var(--text-xs); font-family: var(--font-mono); }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.metrics { grid-template-columns: 1fr 1fr; }
|
||||
.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.panel-head, .alert { flex-wrap: wrap; }
|
||||
.hist-row {
|
||||
grid-template-columns: 1fr;
|
||||
gap: var(--space-1);
|
||||
|
||||
Reference in New Issue
Block a user