mirror of
https://github.com/swissmakers/fail2ban-ui.git
synced 2026-04-17 14:03:15 +02:00
Improve table responsive
This commit is contained in:
@@ -47,6 +47,17 @@
|
|||||||
#reloadBanner {
|
#reloadBanner {
|
||||||
display: none;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@@ -399,6 +410,7 @@ function renderDashboard(data) {
|
|||||||
} else {
|
} else {
|
||||||
html += ''
|
html += ''
|
||||||
+ '<h2><span data-bs-toggle="tooltip" data-bs-placement="top" title="The Overview displays the currently enabled jails that you have added to your jail.local configuration.">Overview</span></h2>'
|
+ '<h2><span data-bs-toggle="tooltip" data-bs-placement="top" title="The Overview displays the currently enabled jails that you have added to your jail.local configuration.">Overview</span></h2>'
|
||||||
|
+ '<div class="table-responsive">'
|
||||||
+ '<table class="table table-striped" id="jailsTable">'
|
+ '<table class="table table-striped" id="jailsTable">'
|
||||||
+ ' <thead>'
|
+ ' <thead>'
|
||||||
+ ' <tr>'
|
+ ' <tr>'
|
||||||
@@ -425,7 +437,7 @@ function renderDashboard(data) {
|
|||||||
+ '</tr>';
|
+ '</tr>';
|
||||||
});
|
});
|
||||||
|
|
||||||
html += '</tbody></table>';
|
html += '</tbody></table></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Last 5 bans
|
// Last 5 bans
|
||||||
@@ -434,6 +446,7 @@ function renderDashboard(data) {
|
|||||||
html += '<p>No recent bans found.</p>';
|
html += '<p>No recent bans found.</p>';
|
||||||
} else {
|
} else {
|
||||||
html += ''
|
html += ''
|
||||||
|
+ '<div class="table-responsive">'
|
||||||
+ '<table class="table table-bordered">'
|
+ '<table class="table table-bordered">'
|
||||||
+ ' <thead>'
|
+ ' <thead>'
|
||||||
+ ' <tr>'
|
+ ' <tr>'
|
||||||
@@ -443,7 +456,7 @@ function renderDashboard(data) {
|
|||||||
+ ' <th>Log Line</th>'
|
+ ' <th>Log Line</th>'
|
||||||
+ ' </tr>'
|
+ ' </tr>'
|
||||||
+ ' </thead>'
|
+ ' </thead>'
|
||||||
+ ' <tbody>';
|
+ ' <tbody></div>';
|
||||||
|
|
||||||
data.lastBans.forEach(function(e) {
|
data.lastBans.forEach(function(e) {
|
||||||
html += ''
|
html += ''
|
||||||
|
|||||||
Reference in New Issue
Block a user