From 62013493dc25da925f334a5a8ff406f378c2b449 Mon Sep 17 00:00:00 2001 From: Nees Jan van Eck <36573334+neesjanvaneck@users.noreply.github.com> Date: Sat, 16 Mar 2024 19:33:07 +0100 Subject: [PATCH] Fix cluster color legend scaling issue (#63) --- src/components/ui/ClusterColorLegend/styles.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ui/ClusterColorLegend/styles.js b/src/components/ui/ClusterColorLegend/styles.js index c2adba8..acd9a9d 100644 --- a/src/components/ui/ClusterColorLegend/styles.js +++ b/src/components/ui/ClusterColorLegend/styles.js @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; -export const canvas = (width) => css` +export const canvas = ({ width }) => css` label: cluster-legend-canvas; - width: ${width}; + width: ${width}px; `;