From 9fa5347f00099c107fbd040d9133895667e24db3 Mon Sep 17 00:00:00 2001 From: moklick Date: Wed, 14 Apr 2021 10:11:36 +0200 Subject: [PATCH] fix(bg): dont cut off dots closes #1088 --- example/src/Overview/index.tsx | 2 +- src/additional-components/Background/index.tsx | 2 +- src/additional-components/Background/utils.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/src/Overview/index.tsx b/example/src/Overview/index.tsx index c35eeb2a..b6250a69 100644 --- a/example/src/Overview/index.tsx +++ b/example/src/Overview/index.tsx @@ -192,7 +192,7 @@ const OverviewFlow = () => { > - + ); }; diff --git a/src/additional-components/Background/index.tsx b/src/additional-components/Background/index.tsx index 9e8661da..c5543e49 100644 --- a/src/additional-components/Background/index.tsx +++ b/src/additional-components/Background/index.tsx @@ -36,7 +36,7 @@ const Background: FC = ({ const isLines = variant === BackgroundVariant.Lines; const bgColor = color ? color : defaultColors[variant]; - const path = isLines ? createGridLinesPath(scaledGap, size, bgColor) : createGridDotsPath(size, bgColor); + const path = isLines ? createGridLinesPath(scaledGap, size, bgColor) : createGridDotsPath(size * scale, bgColor); return ( { - return ; + return ; }; export const createGridDotsPath = (size: number, fill: string): React.ReactElement => { - return ; + return ; };