Skip to content

Commit

Permalink
Supprime l'affichage bizarre odd et even sur la page des villes
Browse files Browse the repository at this point in the history
  • Loading branch information
martinratinaud committed Nov 20, 2024
1 parent 65c6919 commit 6f41a59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
11 changes: 0 additions & 11 deletions src/components/Cities/Networks.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,3 @@ export const NetworkContainer = styled.div`
min-height: 500px;
}
`;

export const NetworkColumn = styled.div`
${({ theme }) => theme.media.md`
:nth-child(even) {
padding-left: 16px;
}
:nth-child(odd) {
padding-right: 16px;
}
`}
`;
10 changes: 5 additions & 5 deletions src/components/Cities/Networks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import WrappedText from '@components/WrappedText/WrappedText';
import { createMapConfiguration } from 'src/services/Map/map-configuration';
import { Network } from 'src/types/Summary/Network';

import { NetworkContainer, NetworkColumn } from './Networks.styles';
import { NetworkContainer } from './Networks.styles';

type NetworksData = {
isClassed: boolean;
Expand All @@ -20,7 +20,7 @@ type NetworksData = {
const Networks = ({ networksData, network, cityCoord }: { networksData: NetworksData; network?: Network; cityCoord: [number, number] }) => {
return (
<NetworkContainer>
<NetworkColumn className="fr-col-md-6 fr-col-12">
<div className="fr-col-md-6 fr-col-12">
{networksData.gestionnaires && <WrappedText body={`::arrow-item[${networksData.gestionnaires}]`} />}
{networksData.isClassed && (
<>
Expand Down Expand Up @@ -53,8 +53,8 @@ const Networks = ({ networksData, network, cityCoord }: { networksData: Networks
</Slice>
</>
)}
</NetworkColumn>
<NetworkColumn className="fr-col-md-6 fr-col-12">
</div>
<div className="fr-col-md-6 fr-col-12">
<Map
noPopup
withCenterPin
Expand All @@ -67,7 +67,7 @@ const Networks = ({ networksData, network, cityCoord }: { networksData: Networks
filtreIdentifiantReseau: networksData.identifiant ? [networksData.identifiant] : [],
})}
/>
</NetworkColumn>
</div>
</NetworkContainer>
);
};
Expand Down

0 comments on commit 6f41a59

Please sign in to comment.