diff --git a/builder.js b/builder.js index a3c9a35..721b071 100644 --- a/builder.js +++ b/builder.js @@ -452,8 +452,11 @@ function calculateBuild(save_skp, skp){ } document.getElementById("level-choice").value = level; - for (let i of document.getElementsByClassName("hide-container")) { - i.style.visibility = "visible"; + for (let i of document.getElementsByClassName("hide-container-block")) { + i.style.display = "block"; + } + for (let i of document.getElementsByClassName("hide-container-grid")) { + i.style.display = "grid"; } player_build = new Build(level, equipment, powderings, new Map()); diff --git a/display.js b/display.js index cf73715..4da9ef4 100644 --- a/display.js +++ b/display.js @@ -105,9 +105,9 @@ function displaySetBonuses(parent_id,build) { parent_div.append(set_summary_elem); if (build.activeSetCounts.size) { - parent_div.parentElement.style.visibility = "visible"; + parent_div.parentElement.style.display = "block"; } else { - parent_div.parentElement.style.visibility = "hidden"; + parent_div.parentElement.style.display = "none"; } for (const [setName, count] of build.activeSetCounts) { diff --git a/index.html b/index.html index 99b2a8c..5c121da 100644 --- a/index.html +++ b/index.html @@ -393,13 +393,13 @@ -