omgovich / react-colorful

🎨 A tiny (2,8 KB) color picker component for React and Preact apps
https://omgovich.github.io/react-colorful
MIT License
3.19k stars 100 forks source link

HexColorPicker does not scale correct at short height #212

Open hdale94 opened 10 months ago

hdale94 commented 10 months ago

Hello.

Having some issues with the HexColorPicker at small sizes.

I'm setting the size like this using a CSS class:

.custom-color-picker.react-colorful {
    margin-top: 5px;
    position: absolute;
    z-index: 1;
    right: 5px;
    width: 46px !important;
    height: 30px !important;
}

With this short height, the color picker will not distribute the range of colors in a reasonable way, and instead display mostly black color.

Skjermbilde 2023-12-20 kl  14 35 34