From b612057402b9c5b433cbe9730850f0adc68fd2aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Wed, 14 Jun 2023 12:17:35 +0200 Subject: [PATCH] fix css border radius --- site/source/components/Simulation/SimulationGoals.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/source/components/Simulation/SimulationGoals.tsx b/site/source/components/Simulation/SimulationGoals.tsx index 006948b09..ea6b18caf 100644 --- a/site/source/components/Simulation/SimulationGoals.tsx +++ b/site/source/components/Simulation/SimulationGoals.tsx @@ -81,7 +81,8 @@ export const SimulationGoalsContainer = styled.div< z-index: 1; position: relative; padding: ${({ theme }) => `${theme.spacings.sm} ${theme.spacings.lg}`}; - border-start-end-radius: 0; + border-start-end-radius: ${({ theme, isEmbeded }) => + isEmbeded ? theme.box.borderRadius : '0'}; border-end-start-radius: 0; border-end-end-radius: 0; border-start-start-radius: ${({ theme }) => theme.box.borderRadius}; @@ -108,7 +109,6 @@ export const SimulationGoalsContainer = styled.div< padding: 0; } @media (max-width: ${({ theme }) => theme.breakpointsWidth.sm}) { - border-start-start-radius: ${({ theme }) => theme.box.borderRadius}; border-start-end-radius: ${({ theme }) => theme.box.borderRadius}; } `