fix: remove double swatch-cell nesting in renderSammlung

This commit is contained in:
Ferdinand
2026-04-02 10:43:42 +02:00
parent b30ff0d7fc
commit ce6c3298b4

View File

@@ -166,9 +166,7 @@ export function renderSammlung() {
} else { } else {
data.favoriten.forEach(hsl => { data.favoriten.forEach(hsl => {
const hex = hslToHex(hsl); const hex = hslToHex(hsl);
const cell = document.createElement('div'); const cell = makeSwatch(hsl);
cell.className = 'swatch-cell';
cell.appendChild(makeSwatch(hsl));
const del = document.createElement('button'); const del = document.createElement('button');
del.className = 'action-btn'; del.className = 'action-btn';
@@ -192,10 +190,7 @@ export function renderSammlung() {
histContainer.appendChild(msg); histContainer.appendChild(msg);
} else { } else {
data.history.forEach(hsl => { data.history.forEach(hsl => {
const cell = document.createElement('div'); histContainer.appendChild(makeSwatch(hsl));
cell.className = 'swatch-cell';
cell.appendChild(makeSwatch(hsl));
histContainer.appendChild(cell);
}); });
} }
} }