Compare commits

..

1 Commits

Author SHA1 Message Date
Deeman
169092c8ea fix(admin): make pipeline data view responsive on mobile
All checks were successful
CI / test (push) Successful in 50s
CI / tag (push) Successful in 2s
- Tab bar: add overflow-x:auto so 5 tabs scroll on narrow screens
- Overview grid: replace hardcoded 1fr 1fr with .pipeline-two-col (stacks below 640px)
- Overview tables: wrap Serving Tables + Landing Zone in overflow-x:auto divs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 13:16:58 +01:00
2 changed files with 15 additions and 1 deletions

View File

@@ -57,7 +57,7 @@
</div> </div>
<!-- Two-column row: Serving Freshness + Landing Zone --> <!-- Two-column row: Serving Freshness + Landing Zone -->
<div style="display:grid;grid-template-columns:1fr 1fr;gap:1rem"> <div class="pipeline-two-col">
<!-- Serving Freshness --> <!-- Serving Freshness -->
<div class="card"> <div class="card">
@@ -68,6 +68,7 @@
</p> </p>
{% endif %} {% endif %}
{% if serving_tables %} {% if serving_tables %}
<div style="overflow-x:auto">
<table class="table" style="font-size:0.8125rem"> <table class="table" style="font-size:0.8125rem">
<thead> <thead>
<tr> <tr>
@@ -86,6 +87,7 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
</div>
{% else %} {% else %}
<p class="text-sm text-slate">No serving tables found — run the pipeline first.</p> <p class="text-sm text-slate">No serving tables found — run the pipeline first.</p>
{% endif %} {% endif %}
@@ -99,6 +101,7 @@
</span> </span>
</p> </p>
{% if landing_stats %} {% if landing_stats %}
<div style="overflow-x:auto">
<table class="table" style="font-size:0.8125rem"> <table class="table" style="font-size:0.8125rem">
<thead> <thead>
<tr> <tr>
@@ -119,6 +122,7 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
</div>
{% else %} {% else %}
<p class="text-sm text-slate"> <p class="text-sm text-slate">
Landing zone empty or not found at <code>data/landing</code>. Landing zone empty or not found at <code>data/landing</code>.

View File

@@ -15,6 +15,7 @@
.pipeline-tabs { .pipeline-tabs {
display: flex; gap: 0; border-bottom: 2px solid #E2E8F0; margin-bottom: 1.5rem; display: flex; gap: 0; border-bottom: 2px solid #E2E8F0; margin-bottom: 1.5rem;
overflow-x: auto; -webkit-overflow-scrolling: touch;
} }
.pipeline-tabs button { .pipeline-tabs button {
padding: 0.625rem 1.25rem; font-size: 0.8125rem; font-weight: 600; padding: 0.625rem 1.25rem; font-size: 0.8125rem; font-weight: 600;
@@ -33,6 +34,15 @@
.status-dot.stale { background: #D97706; } .status-dot.stale { background: #D97706; }
.status-dot.running { background: #3B82F6; } .status-dot.running { background: #3B82F6; }
.status-dot.pending { background: #CBD5E1; } .status-dot.pending { background: #CBD5E1; }
.pipeline-two-col {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
@media (min-width: 640px) {
.pipeline-two-col { grid-template-columns: 1fr 1fr; }
}
</style> </style>
{% endblock %} {% endblock %}