fix: remove double swatch-cell nesting in renderSammlung
This commit is contained in:
@@ -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));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user