From 0167afdd314d3c47e3b9161375e2456af12950df Mon Sep 17 00:00:00 2001 From: Michael Reber Date: Sat, 1 Feb 2025 08:51:16 +0100 Subject: [PATCH] Improve table responsive --- pkg/web/templates/index.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pkg/web/templates/index.html b/pkg/web/templates/index.html index ac51a0f..94ff162 100644 --- a/pkg/web/templates/index.html +++ b/pkg/web/templates/index.html @@ -47,6 +47,17 @@ #reloadBanner { display: none; } + + /* Improve table readability on small screens */ + @media (max-width: 575px) { + .table th, .table td { + font-size: 0.8rem; + padding: 5px; + } + .table thead { + font-size: 1rem; + } + } @@ -399,6 +410,7 @@ function renderDashboard(data) { } else { html += '' + '

Overview

' + + '
' + '' + ' ' + ' ' @@ -425,7 +437,7 @@ function renderDashboard(data) { + ''; }); - html += '
'; + html += '
'; } // Last 5 bans @@ -434,6 +446,7 @@ function renderDashboard(data) { html += '

No recent bans found.

'; } else { html += '' + + '
' + '' + ' ' + ' ' @@ -443,7 +456,7 @@ function renderDashboard(data) { + ' ' + ' ' + ' ' - + ' '; + + ' '; data.lastBans.forEach(function(e) { html += ''
Log Line