Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-10-07 16:53:55 +02:00
parent e0287c8d27
commit eb03a06b07
2 changed files with 6 additions and 2 deletions

View File

@ -35,7 +35,7 @@ const MenuList = ({
return (
<li key={categoryName}>
<Category categoryName={categoryName} />
<Ul style={{ marginTop: '-4px' }}>
<Ul style={{ marginTop: '-4px' }} maxHeight="100%">
{componentsGroupedByCategory[categoryName].map(component => {
if (
(isAddingAComponentToAnotherComponent &&

View File

@ -1,7 +1,7 @@
import styled from 'styled-components';
const Ul = styled.ul`
max-height: 150px;
max-height: ${props => props.maxHeight};
padding: 0 15px;
background-color: #fff;
list-style: none;
@ -59,4 +59,8 @@ const Ul = styled.ul`
}
`;
Ul.defaultProps = {
maxHeight: '150px',
};
export default Ul;