Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change number of columns based on number of kits [TMZ-178] #92

Merged
merged 4 commits into from
Nov 26, 2024

Conversation

nicoladj77
Copy link
Contributor

No description provided.

@nicoladj77 nicoladj77 requested a review from nuritsha November 26, 2024 10:18
@@ -27,7 +27,7 @@ export const InstallKit = ( { message, kits = [], setPreviewKit, severity } ) =>

<Grid container rowSpacing={ 3 } columnSpacing={ 5 } >
{ kits.map( ( kit ) => (
<Grid key={ kit._id } item xs={ 12 } sm={ 6 } md={ 3 }>
<Grid key={ kit._id } item xs={ 12 } sm={ 6 } md={ 0 === kits.length % 3 ? 4 : 3 }>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Grid key={ kit._id } item xs={ 12 } sm={ 6 } md={ 0 === kits.length % 3 ? 4 : 3 }>
<Grid key={ kit._id } item xs={ 12 } sm={ 6 } md={ 0 === kits.length % 4 ? 4 : ( 0 === kits.length % 3 ? 3 : 4 }>

@nuritsha nuritsha merged commit ce9aaf5 into elementor:master Nov 26, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants