Fix list keys, div height units

This commit is contained in:
2025-01-04 11:13:14 -05:00
parent e49ba23e3f
commit 544d60c702
2 changed files with 14 additions and 15 deletions

View File

@ -55,7 +55,7 @@ export const PaletteBar: React.FC<PaletteBarProps> = ({ height, palette, childre
return (
<>
<div ref={sizingRef} style={{ width: "100%", height }}>
<div ref={sizingRef} style={{ width: "100%", height: `${height}px` }}>
{width > 0 ? <canvas ref={canvasRef} width={width} height={height} style={canvasStyle} /> : null}
</div>
{children}