review ip

This commit is contained in:
Virginie Ky 2019-10-17 13:46:39 +02:00
parent 75bd60162a
commit c4886d7936
6 changed files with 13 additions and 7 deletions

View File

@ -14,7 +14,7 @@ const StyledPluginHeaderActions = styled.div`
padding-top: 1rem; padding-top: 1rem;
button { button {
margin-right: 0; margin-right: 0;
margin-left: 1.8rem; margin-left: 1rem;
max-width: 100%; max-width: 100%;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;

View File

@ -5,8 +5,11 @@ const Wrapper = styled.div`
> div { > div {
padding-top: 2px; padding-top: 2px;
&:not(:first-of-type) { &:not(:first-of-type) {
padding-top: 18px; padding-top: 9px;
padding-bottom: 2px; padding-bottom: 2px;
&:last-of-type:nth-of-type(even) {
padding-bottom: 11px;
}
} }
} }
`; `;

View File

@ -109,7 +109,7 @@ function FilterPicker({
return ( return (
<Collapse isOpen={isOpen} onEntering={handleEntering}> <Collapse isOpen={isOpen} onEntering={handleEntering}>
<Container style={{ backgroundColor: 'white' }}> <Container style={{ backgroundColor: 'white', paddingBottom: 0 }}>
<form <form
onSubmit={e => { onSubmit={e => {
e.preventDefault(); e.preventDefault();

View File

@ -25,7 +25,6 @@ const Card = styled.div`
display: inline-block; display: inline-block;
height: 20px; height: 20px;
width: 35px; width: 35px;
margin-top: -3px;
margin-right: 10px; margin-right: 10px;
} }
@ -36,11 +35,13 @@ const Card = styled.div`
font-style: italic; font-style: italic;
font-weight: 400; font-weight: 400;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
margin-top: auto;
margin-bottom: auto;
line-height: normal;
&:last-child { &:last-child {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
line-height: normal;
} }
} }
`; `;

View File

@ -190,7 +190,7 @@ class AttributesPickerModal extends React.Component {
</HeaderModalTitle> </HeaderModalTitle>
</section> </section>
</HeaderModal> </HeaderModal>
<ModalBody style={{ paddingTop: '0.4rem', paddingBottom: '3rem' }}> <ModalBody style={{ paddingTop: '0.5rem', paddingBottom: '3rem' }}>
{attributes.map(this.renderAttribute)} {attributes.map(this.renderAttribute)}
</ModalBody> </ModalBody>
<ModalFooter /> <ModalFooter />

View File

@ -1,8 +1,10 @@
import styled from 'styled-components'; import styled from 'styled-components';
import { colors } from 'strapi-helper-plugin';
const Wrapper = styled.div` const Wrapper = styled.div`
min-height: calc(100vh - 6rem); min-height: calc(100vh - 6rem);
background: rgba(14, 22, 34, 0.02); background: ${colors.lightGrey};
`; `;
export default Wrapper; export default Wrapper;