diff --git a/components/Columns/index.tsx b/components/Columns/index.tsx index 9e13fdb26..8c8e6fe41 100644 --- a/components/Columns/index.tsx +++ b/components/Columns/index.tsx @@ -8,10 +8,12 @@ export const Column = ({ children }) => { ) } -const Columns = ({ children, columns = 2, layout = 'auto'}) => { +const Columns = ({ children, layout = 'auto'}) => { layout = layout === 'fixed' ? '1fr' : 'auto'; + const columnsCount = React.Children.count(children); + return ( -
+
{children}
); diff --git a/components/Columns/style.scss b/components/Columns/style.scss index 64e6702e7..42612e64e 100644 --- a/components/Columns/style.scss +++ b/components/Columns/style.scss @@ -1,4 +1,10 @@ +$iphone-plus: 414px; + .Columns { display: grid; gap: var(--md, 20px); + + @media (max-width: $iphone-plus) { + grid-template-columns: 1fr !important; + } } diff --git a/docs/built-in-components.mdx b/docs/built-in-components.mdx index 3c81f05b7..ada17a5ca 100644 --- a/docs/built-in-components.mdx +++ b/docs/built-in-components.mdx @@ -40,7 +40,7 @@ ### Columns - + Neque porro quisquam est qui dolorem ipsum quia