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