center title on card preview

trunk
vilmibm 2020-11-24 23:32:15 -08:00
parent 84ae05d776
commit e40eb87e1d
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class Tarot {
const cardElem = bp.cloneNode(true); const cardElem = bp.cloneNode(true);
cardElem.classList.remove("blueprint"); cardElem.classList.remove("blueprint");
cardElem.setAttribute("data-cardName", cardName) cardElem.setAttribute("data-cardName", cardName)
cardElem.setAttribute("style", "float:left; margin-right: 20px; width: 150px; height: 250px; border: 1px solid pink;"); cardElem.setAttribute("style", "float:left; margin-right: 20px; width: 150px; height: 250px; border: 1px solid pink; text-align:center;");
cardElem.querySelector("span").innerHTML = cardName; cardElem.querySelector("span").innerHTML = cardName;
cardElem.addEventListener("mouseenter", this.render.bind(this)); cardElem.addEventListener("mouseenter", this.render.bind(this));
elem.append(cardElem); elem.append(cardElem);