luci: fix table style for argon theme

This commit is contained in:
fujr 2024-12-19 16:50:21 +08:00
parent 2907ba887f
commit 78deb90485
2 changed files with 8 additions and 2 deletions

View File

@ -6,7 +6,9 @@
} }
.table {
display: table;
}
.compat-progressbar { .compat-progressbar {
border: 1px solid var(--border-color-high,var(--progressbarColor,var(--background-color))); border: 1px solid var(--border-color-high,var(--progressbarColor,var(--background-color)));

View File

@ -7,7 +7,9 @@
} }
.table {
display: table;
}
.compat-progressbar { .compat-progressbar {
border: 1px solid var(--border-color-high,var(--progressbarColor,var(--background-color))); border: 1px solid var(--border-color-high,var(--progressbarColor,var(--background-color)));
@ -79,6 +81,7 @@ class LuciTable{
//init table //init table
var table = document.createElement('table'); var table = document.createElement('table');
var tbody = document.createElement('tbody'); var tbody = document.createElement('tbody');
tbody.style.width = "100%";
table.className="table" table.className="table"
//save //save
this.fieldset = fieldset; this.fieldset = fieldset;
@ -146,6 +149,7 @@ class LuciTable{
row.className = "tr" row.className = "tr"
let cell_left = document.createElement('td'); let cell_left = document.createElement('td');
cell_left.classList.add("td") cell_left.classList.add("td")
cell_left.classList.add("left")
cell_left.setAttribute("width","33%") cell_left.setAttribute("width","33%")
let cell_right = document.createElement('td'); let cell_right = document.createElement('td');
cell_right.classList.add("td") cell_right.classList.add("td")