Merge branch 'fix-non-rectangular-board' into 'develop'

Fix non rectangular board

See merge request raphj/trivabble!22
This commit is contained in:
Raphaël Jakse 2020-12-06 16:35:49 +00:00
commit 4ebba1af7c
2 changed files with 6 additions and 2 deletions

View File

@ -122,6 +122,8 @@ html, #board, [draggable], .tile {
display:inline-block;
white-space:pre-wrap;
font-size:7px;
text-overflow:ellipsis;
overflow:hidden;
}
#center-cell .special-cell-label {
@ -186,8 +188,10 @@ button {
}
#board td {
width:32px;
height:32px;
width: 32px;
max-width:32px;
max-height:32px;
}
#rack .tile-placeholder {

View File

@ -1538,7 +1538,7 @@
cell.firstChild.appendChild(document.createElement("span"));
cell.classList.add("special-cell");
cell.classList.add("special-cell-" + type);
cell.lastChild.lastChild.textContent = _(specialTypesText[type]);
cell.lastChild.lastChild.textContent = cell.title = _(specialTypesText[type]);
cell.lastChild.lastChild.className = "special-cell-label";
}