one-click-accessibility/modules/settings/assets/js/components/position-settings-wrapper/index.js
Nirbhay Singh c067ae8b4b
[APP-1051] Fix layout on the small and medium devices (#156)
* fix: layout on the small and medium devices

* update: change components to styled components

* refactor: position settings wrapper into a separate component
2025-02-06 11:20:07 +02:00

21 lines
531 B
JavaScript

import Box from '@elementor/ui/Box';
import { styled } from '@elementor/ui/styles';
const StyledBox = styled(Box)`
display: grid;
justify-content: space-evenly;
gap: ${({ theme }) => theme.spacing(5)};
padding: ${({ theme }) => theme.spacing(2)};
grid-template-columns: repeat(2, 1fr);
${({ theme }) => theme.breakpoints.down('lg')} {
grid-template-columns: repeat(1, 1fr);
}
`;
const PositionSettingsWrapper = ({ children }) => {
return <StyledBox>{children}</StyledBox>;
};
export default PositionSettingsWrapper;