mirror of
https://github.com/strapi/strapi.git
synced 2025-11-17 18:51:22 +00:00
Merge pull request #9777 from strapi/features/i18n-fix-locale-padding
[i18n] fix padding in locale picker list
This commit is contained in:
commit
92c98cdc2a
@ -7,7 +7,7 @@ import get from 'lodash/get';
|
|||||||
|
|
||||||
const List = styled.ul`
|
const List = styled.ul`
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding: 0;
|
padding: 3px 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -19,10 +19,11 @@ const ListItem = styled.li`
|
|||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
line-height: 36px;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: ${props => props.theme.main.colors.lightGrey};
|
background: ${props => props.theme.main.colors.mediumGrey};
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -74,7 +75,7 @@ const LocalePicker = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Padded top left right bottom>
|
<Padded left right>
|
||||||
<List>
|
<List>
|
||||||
{locales.map(locale => (
|
{locales.map(locale => (
|
||||||
<ListItem key={locale.id}>
|
<ListItem key={locale.id}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user