style(rgcp): correction du style des options en version mobile

pull/3258/head
Alice Dahan 2024-12-06 16:53:20 +01:00 committed by liliced
parent 905ea2c0f1
commit ff0d07ddb1
1 changed files with 17 additions and 8 deletions

View File

@ -9,7 +9,7 @@ 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 } from '@/design-system/layout'
import { Grid, Spacing } from '@/design-system/layout'
import { Body } from '@/design-system/typography/paragraphs'
import {
@ -157,14 +157,18 @@ export default function RéductionGénéraleMois({
</GridContainer>
{isOptionVisible && (
<MonthOptions
month={monthName}
index={index}
options={data.options}
onOptionsChange={onOptionsChange}
/>
<OptionsContainer>
<MonthOptions
month={monthName}
index={index}
options={data.options}
onOptionsChange={onOptionsChange}
/>
</OptionsContainer>
)}
<Spacing xs />
<GridContainer container spacing={2}>
<Grid item>
<RuleLink dottedName={réductionGénéraleDottedName} />
@ -207,7 +211,7 @@ export default function RéductionGénéraleMois({
{isOptionVisible && (
<StyledTableRow>
<td />
<td colSpan={4}>
<td colSpan={3}>
<MonthOptions
month={monthName}
index={index}
@ -233,6 +237,11 @@ const GridContainer = styled(Grid)`
const StyledBody = styled(Body)`
margin-top: 0;
`
const OptionsContainer = styled.div`
margin-top: ${({ theme }) => theme.spacings.xs};
background-color: ${({ theme }) => theme.colors.bases.primary[200]};
padding: ${({ theme }) => theme.spacings.sm};
`
const StyledTableRow = styled.tr`
background-color: ${({ theme }) => theme.colors.bases.primary[200]};