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 to make 2 column with difference width. #127

Open
chuong3x opened this issue Aug 18, 2022 · 5 comments
Open

How to make 2 column with difference width. #127

chuong3x opened this issue Aug 18, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@chuong3x
Copy link

I have 2 column layout. I want to these column with difference width. How can I do that?

@jaredLunde
Copy link
Owner

This isn't possible right now

@jaredLunde jaredLunde added the enhancement New feature or request label Aug 18, 2022
@intelligence
Copy link

Looking for the same functionality. Would be nice to be able to use variable width and/or height.

@jaredLunde
Copy link
Owner

Out of scope, use something else :)

@intelligence
Copy link

I see, do you know if if it's technically feasible, from a performance perspective to create a feature like that? I've been looking for react components that enables variable width and height, but there aren't any around.

Thanks for your reply :)

@jaredLunde
Copy link
Owner

I think it'd be algorithmically challenging. Masonry layouts like this one are really straightforward. They're laid out in columns and you just place the next cell in the shortest column. So all you have to track is the # of columns that fit in a given window, then keep track of the current height of each column. I haven't thought much about what a masonry layout that accepted arbitrary dimensions would look like tbh :\

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