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

How does one deal with grid layouts with variable columns per row, and want equal heights per row? #9

Open
amityweb opened this issue Apr 19, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@amityweb
Copy link

I have a grid or flex layout which wrap my columns. I have different number of columns per width, so large may have 4, medium 3 columns, then down to 2. I do not use HTML to break these up as that is just PITA. CSS does it.

If I use EqualHeight which is great, it works, it changes ALL columns to the same height regardless of row. I noticed I have a lagr image in my last row, so all column image containers are set to that one, and so they are too large. Ideally you want it to have EqualHeight per row.

I am not sure how you would achieve that based on it being a flex or grid layout. I've never tried to see if JS can know the last or first elements in a grid/flex row. If it can, then this should be achievable.

In the meantime how does one deal with this? I think I will have to try to set a max. height on my columns content to prevent EqualHeight making them all too large based on a high one.

@loba-b
Copy link
Owner

loba-b commented Apr 19, 2024

Can you provide an example code in some online editor to show exactly what you mean, unfortunately I can't imagine it

@dungle-scrubs
Copy link

I think what he is describing is the same in this issue, is that correct?

@loba-b
Copy link
Owner

loba-b commented Jul 2, 2024

Ah, ok, I understand. So I would like to create some PoC.

@loba-b loba-b added the enhancement New feature or request label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants