web: minor, improve cell size
This commit is contained in:
parent
baa32c62c2
commit
1595ea9017
|
@ -113,7 +113,11 @@ function select_part()
|
||||||
for (const table of tables) {
|
for (const table of tables) {
|
||||||
const tbody = document.getElementById(table);
|
const tbody = document.getElementById(table);
|
||||||
tbody.innerHTML = null;
|
tbody.innerHTML = null;
|
||||||
|
if ("components" == table) {
|
||||||
|
part[table].push({name: "", quantity: ""}); // empty field to add
|
||||||
|
} else {
|
||||||
part[table].push({name: "", value: ""}); // empty field to add
|
part[table].push({name: "", value: ""}); // empty field to add
|
||||||
|
}
|
||||||
for (const row of part[table]) {
|
for (const row of part[table]) {
|
||||||
const tr = document.createElement('tr');
|
const tr = document.createElement('tr');
|
||||||
let td = document.createElement('td');
|
let td = document.createElement('td');
|
||||||
|
@ -148,7 +152,7 @@ function select_part()
|
||||||
input.min = "0";
|
input.min = "0";
|
||||||
input.step = "1";
|
input.step = "1";
|
||||||
input.value = row.quantity;
|
input.value = row.quantity;
|
||||||
input.style.width = "95%";
|
input.size = "4";
|
||||||
td.appendChild(input);
|
td.appendChild(input);
|
||||||
tr.appendChild(td);
|
tr.appendChild(td);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue