diff --git a/js/collection.js b/js/collection.js index 65f362a..3926e3c 100644 --- a/js/collection.js +++ b/js/collection.js @@ -166,9 +166,7 @@ export function renderSammlung() { } else { data.favoriten.forEach(hsl => { const hex = hslToHex(hsl); - const cell = document.createElement('div'); - cell.className = 'swatch-cell'; - cell.appendChild(makeSwatch(hsl)); + const cell = makeSwatch(hsl); const del = document.createElement('button'); del.className = 'action-btn'; @@ -192,10 +190,7 @@ export function renderSammlung() { histContainer.appendChild(msg); } else { data.history.forEach(hsl => { - const cell = document.createElement('div'); - cell.className = 'swatch-cell'; - cell.appendChild(makeSwatch(hsl)); - histContainer.appendChild(cell); + histContainer.appendChild(makeSwatch(hsl)); }); } }