Minor pinout table improvements (#2846)
* try to fix table width * try here
This commit is contained in:
parent
a8e6078f04
commit
4d6b2783f3
|
@ -32,7 +32,7 @@ function addRow(table, pin, pdiv) {
|
||||||
var cells = row.children;
|
var cells = row.children;
|
||||||
for (var i = 0; i < cells.length; i++) {
|
for (var i = 0; i < cells.length; i++) {
|
||||||
var cell = cells[i];
|
var cell = cells[i];
|
||||||
cell.textContent = pin[cell.dataset.field];
|
cell.textContent = Array.isArray(pin[cell.dataset.field]) ? pin[cell.dataset.field].join(", ") : pin[cell.dataset.field];
|
||||||
}
|
}
|
||||||
clone.querySelector(".pin-data").dataset.type = pin.type;
|
clone.querySelector(".pin-data").dataset.type = pin.type;
|
||||||
if (pdiv) {
|
if (pdiv) {
|
||||||
|
@ -43,6 +43,7 @@ function addRow(table, pin, pdiv) {
|
||||||
}
|
}
|
||||||
table.appendChild(clone);
|
table.appendChild(clone);
|
||||||
}
|
}
|
||||||
|
|
||||||
function clickPin(table, pin, pdiv) {
|
function clickPin(table, pin, pdiv) {
|
||||||
table.parentElement.style.display = "table";
|
table.parentElement.style.display = "table";
|
||||||
table.innerHTML = "";
|
table.innerHTML = "";
|
||||||
|
|
|
@ -148,7 +148,8 @@ table {
|
||||||
|
|
||||||
@media (max-width: 1000px) {
|
@media (max-width: 1000px) {
|
||||||
table {
|
table {
|
||||||
font-size: 3rem;
|
word-wrap: break-word;
|
||||||
|
font-size: 2.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue