Add grid layout options. Bugfixes

This commit is contained in:
2020-01-02 22:41:21 +01:00
parent 5d2842f934
commit c2808b9396
4 changed files with 94 additions and 16 deletions

View File

@@ -79,6 +79,7 @@ export function buildLayout(cards, width, config) {
for (let i = 0; i < colnum; i++) {
const newCol = document.createElement("div");
newCol.classList.add("column");
newCol.classList.add("cards");
newCol.length = 0;
cols.push(newCol);
}