Skip to content

An open source alternative to Tableau. Embeddable visual analytic

fix: width issue when using color and repeat (#375)

islxyqwe346fb228a52a
diff --git a/packages/graphic-walker/src/vis/react-vega.tsx b/packages/graphic-walker/src/vis/react-vega.tsx
index 32f4f075..6a1a1adf 100644
--- a/packages/graphic-walker/src/vis/react-vega.tsx
+++ b/packages/graphic-walker/src/vis/react-vega.tsx
@@ -32,7 +32,7 @@ expressionFunction('formatBin', (datum: [number, number] | number, formatString?
const CanvaContainer = styled.div<{ rowSize: number; colSize: number }>`
display: grid;
- grid-template-columns: repeat(${(props) => props.colSize}, 1fr);
+ grid-template-columns: repeat(${(props) => props.colSize}, auto);
grid-template-rows: repeat(${(props) => props.rowSize}, 1fr);
`;