css fixes, docs

This commit is contained in:
jokob-sk
2025-01-26 10:20:46 +11:00
parent 4443c69d31
commit 8d607aac96
5 changed files with 10 additions and 5 deletions

View File

@@ -1253,12 +1253,16 @@ input[readonly] {
} }
.filter-group { .filter-group {
flex: 1 100px;
box-sizing: border-box; /* Ensure padding and borders are included in the width */ box-sizing: border-box; /* Ensure padding and borders are included in the width */
padding: 1em; padding: 1em;
padding-top: 0; padding-top: 0;
} }
.filter-dropdown
{
width:7em
}
.modal-header .close .modal-header .close
{ {
display: flex; display: flex;

View File

@@ -446,7 +446,7 @@ function initFilters() {
// Server side component // Server side component
function renderFilters(customData) { function renderFilters(customData) {
console.log(JSON.stringify(customData)); // console.log(JSON.stringify(customData));
// Load filter data from the JSON file // Load filter data from the JSON file
$.ajax({ $.ajax({
@@ -455,7 +455,7 @@ function renderFilters(customData) {
type: 'POST', type: 'POST',
dataType: 'html', dataType: 'html',
success: function(response) { success: function(response) {
console.log(response); // console.log(response);
$('#columnFilters').html(response); // Replace container content with fetched HTML $('#columnFilters').html(response); // Replace container content with fetched HTML
$('#columnFilters').removeClass('hidden'); // Show the filters container $('#columnFilters').removeClass('hidden'); // Show the filters container

View File

@@ -17,7 +17,7 @@ function renderFilterDropdown($headerKey, $columnName, $values) {
// Generate the dropdown HTML // Generate the dropdown HTML
return ' return '
<div class="filter-group"> <div class="filter-group input-group">
<label for="filter_' . htmlspecialchars($columnName) . '">' . lang($headerKey) . '</label> <label for="filter_' . htmlspecialchars($columnName) . '">' . lang($headerKey) . '</label>
<select id="filter_' . htmlspecialchars($columnName) . '" class="filter-dropdown" data-column="' . htmlspecialchars($columnName) . '"> <select id="filter_' . htmlspecialchars($columnName) . '" class="filter-dropdown" data-column="' . htmlspecialchars($columnName) . '">
' . $optionsHtml . ' ' . $optionsHtml . '

View File

@@ -8,6 +8,7 @@ This Plugin is using awesome [asusrouter](https://github.com/Vaskivskyi/asusrout
- Enable the `ASUSWRT` plugin - Enable the `ASUSWRT` plugin
- Head to **Settings** > **AsusWRT device import** to adjust the default values. - Head to **Settings** > **AsusWRT device import** to adjust the default values.
- If you have troubles configuring the plugin set the `LOG_LEVEL='debug'` to get a more detailed error message.
### Notes ### Notes

View File

@@ -465,7 +465,7 @@
"description": [ "description": [
{ {
"language_code": "en_us", "language_code": "en_us",
"string": "Which column filters should be displayed in the main Devices screen." "string": "Which column filters should be displayed in the main Devices screen. Remove all to hide the Filters section."
} }
] ]
}, },