This commit is contained in:
HF 2020-03-19 02:31:54 +01:00
parent 3710271494
commit f47b2a3a20

View File

@ -16,12 +16,12 @@ function getHeightOfPalette(colors, clrIgnore, compactPalette) {
// compact Palette
return Math.ceil(numCal / 5 * 28);
} if (window.innerHeight < 801) {
// Palette one width
return numCal * 24;
}
// Palette two width
return numCal * 24 / 2;
}
// Palette one width
return numCal * 24;
}
function getWidthOfPalette(colors, clrIgnore, compactPalette) {
const numCal = colors.length - clrIgnore;
@ -29,12 +29,12 @@ function getWidthOfPalette(colors, clrIgnore, compactPalette) {
// compact Palette
return 140;
} if (window.innerHeight < 801) {
// Palette one width
return 24;
}
// Palette two width
return 48;
}
// Palette one width
return 24;
}
const Palette = ({
colors, selectedColor, paletteOpen, compactPalette, select, clrIgnore,