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 {
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));
});
}
}