Merge pull request #9777 from strapi/features/i18n-fix-locale-padding

[i18n] fix padding in locale picker list
This commit is contained in:
cyril lopez 2021-03-19 09:05:57 +01:00 committed by GitHub
commit 92c98cdc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import get from 'lodash/get';
const List = styled.ul`
list-style-type: none;
padding: 0;
padding: 3px 0;
margin: 0;
`;
@ -19,10 +19,11 @@ const ListItem = styled.li`
padding-left: 10px;
padding-right: 10px;
height: 36px;
line-height: 36px;
display: flex;
justify-content: center;
&:hover {
background: ${props => props.theme.main.colors.lightGrey};
background: ${props => props.theme.main.colors.mediumGrey};
}
`;
@ -74,7 +75,7 @@ const LocalePicker = () => {
};
return (
<Padded top left right bottom>
<Padded left right>
<List>
{locales.map(locale => (
<ListItem key={locale.id}>