mirror of
https://github.com/strapi/strapi.git
synced 2025-08-10 09:47:46 +00:00
parent
e0287c8d27
commit
eb03a06b07
@ -35,7 +35,7 @@ const MenuList = ({
|
|||||||
return (
|
return (
|
||||||
<li key={categoryName}>
|
<li key={categoryName}>
|
||||||
<Category categoryName={categoryName} />
|
<Category categoryName={categoryName} />
|
||||||
<Ul style={{ marginTop: '-4px' }}>
|
<Ul style={{ marginTop: '-4px' }} maxHeight="100%">
|
||||||
{componentsGroupedByCategory[categoryName].map(component => {
|
{componentsGroupedByCategory[categoryName].map(component => {
|
||||||
if (
|
if (
|
||||||
(isAddingAComponentToAnotherComponent &&
|
(isAddingAComponentToAnotherComponent &&
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
const Ul = styled.ul`
|
const Ul = styled.ul`
|
||||||
max-height: 150px;
|
max-height: ${props => props.maxHeight};
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@ -59,4 +59,8 @@ const Ul = styled.ul`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Ul.defaultProps = {
|
||||||
|
maxHeight: '150px',
|
||||||
|
};
|
||||||
|
|
||||||
export default Ul;
|
export default Ul;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user