mirror of
https://github.com/strapi/strapi.git
synced 2025-08-07 00:09:23 +00:00
parent
e0287c8d27
commit
eb03a06b07
@ -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 &&
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user