mirror of
https://github.com/strapi/strapi.git
synced 2025-07-31 04:45:54 +00:00
fixed overflow bug with accordions in CM
This commit is contained in:
parent
c08dadaa50
commit
fe3f334fec
@ -17,17 +17,18 @@ import { getTrad } from '../../../../utils';
|
||||
import FieldComponent from '../../../FieldComponent';
|
||||
import Rectangle from './Rectangle';
|
||||
|
||||
// FIXME: needed for the react-select overflow
|
||||
const StyledBox = styled(Box)`
|
||||
> div {
|
||||
overflow: visible;
|
||||
}
|
||||
`;
|
||||
|
||||
const IconButtonCustom = styled(IconButton)`
|
||||
background-color: transparent;
|
||||
`;
|
||||
|
||||
const StyledBox = styled(Box)`
|
||||
> div {
|
||||
> div:not(:first-of-type) {
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const Component = ({
|
||||
componentUid,
|
||||
index,
|
||||
@ -76,7 +77,7 @@ const Component = ({
|
||||
return (
|
||||
<Box>
|
||||
<Rectangle />
|
||||
<StyledBox shadow="tableShadow">
|
||||
<StyledBox shadow="tableShadow" hasRadius>
|
||||
<Accordion expanded={isOpen} toggle={() => onToggle(index)} size="S">
|
||||
<AccordionToggle
|
||||
startIcon={<FontAwesomeIcon icon={icon} />}
|
||||
|
@ -21,10 +21,11 @@ import DraggingSibling from './DraggingSibling';
|
||||
import { CustomIconButton, DragHandleWrapper } from './IconButtonCustoms';
|
||||
import { connect, select } from './utils';
|
||||
|
||||
// FIXME: needed for the react-select overflow
|
||||
const StyledBox = styled(Box)`
|
||||
> div {
|
||||
overflow: visible;
|
||||
> div:not(:first-of-type) {
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user