From a2016a0e5c74bcd4c6738aa2535a0dbc46d6e5b8 Mon Sep 17 00:00:00 2001 From: Alice Dahan Date: Tue, 21 Jan 2025 12:33:26 +0100 Subject: [PATCH] =?UTF-8?q?feat(rgcp):=20d=C3=A9placement=20du=20bouton=20?= =?UTF-8?q?options=20=C3=A0=20la=20fin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RéductionDeCotisations/RéductionMois.tsx | 64 ++++++++++--------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/site/source/components/RéductionDeCotisations/RéductionMois.tsx b/site/source/components/RéductionDeCotisations/RéductionMois.tsx index e0451fa4b..412d60350 100644 --- a/site/source/components/RéductionDeCotisations/RéductionMois.tsx +++ b/site/source/components/RéductionDeCotisations/RéductionMois.tsx @@ -9,7 +9,6 @@ import MonthOptions from '@/components/RéductionDeCotisations/MonthOptions' import RuleLink from '@/components/RuleLink' import { useEngine } from '@/components/utils/EngineContext' import { Button } from '@/design-system/buttons' -import { FlexCenter } from '@/design-system/global-style' import { RotatingChevronIcon } from '@/design-system/icons' import { Grid, Spacing } from '@/design-system/layout' import { Body } from '@/design-system/typography/paragraphs' @@ -98,7 +97,7 @@ export default function RéductionMois({ const OptionsButton = () => { return ( - + ) } @@ -149,28 +148,14 @@ export default function RéductionMois({
{monthName} - + - + - - - - {isOptionVisible && ( - - - - )} - @@ -186,11 +171,11 @@ export default function RéductionMois({ {withRépartitionAndRégularisation && ( - + - + @@ -198,16 +183,30 @@ export default function RéductionMois({ )} + + + + + + + + {isOptionVisible && ( + + + + )}
) : ( <> {monthName} - - - - + @@ -217,11 +216,14 @@ export default function RéductionMois({ )} + + + {isOptionVisible && ( - + theme.spacings.md}; +` const StyledBody = styled(Body)` margin-top: 0; ` +const StyledButton = styled(Button)` + white-space: nowrap; +` const OptionsContainer = styled.div` margin-top: ${({ theme }) => theme.spacings.xs}; background-color: ${({ theme }) => theme.colors.bases.primary[200]}; @@ -260,7 +268,3 @@ const StyledTableRow = styled.tr` padding-bottom: ${({ theme }) => theme.spacings.sm}; } ` -const InputContainer = styled.div` - ${FlexCenter} - gap: ${({ theme }) => theme.spacings.md}; -`