fixed table display issues in crafter

This commit is contained in:
ferricles 2021-01-19 22:05:54 -08:00
parent 41d4a4e3b8
commit b41e182454

View file

@ -802,11 +802,13 @@ function displayRecipeStats(craft, parent_id) {
let ingredTable = document.createElement("table"); let ingredTable = document.createElement("table");
ingredTable.classList.add("itemtable"); ingredTable.classList.add("itemtable");
ingredTable.style.tableLayout = "fixed";
for (let i = 0; i < 3; i++) { for (let i = 0; i < 3; i++) {
let row = document.createElement("tr"); let row = document.createElement("tr");
for (let j = 0; j < 2; j++) { for (let j = 0; j < 2; j++) {
let ingredName = ingreds[2 * i + j]; let ingredName = ingreds[2 * i + j];
let cell = document.createElement("td"); let cell = document.createElement("td");
cell.style.width = "50%";
cell.classList.add("center"); cell.classList.add("center");
cell.classList.add("box"); cell.classList.add("box");
let b = document.createElement("b"); let b = document.createElement("b");