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

Feature Request: Varied column widths. #1

Open
phil3903 opened this issue Apr 10, 2016 · 7 comments
Open

Feature Request: Varied column widths. #1

phil3903 opened this issue Apr 10, 2016 · 7 comments

Comments

@phil3903
Copy link

Not sure if there's already support for this, but it'd be fantastic if it were possible.

@dantrain
Copy link
Owner

This would be very cool, it's not explicitly supported right now. The best approach at the moment would be to supply a new layout function that decides which column to lay out each item in based on the item's props. So you could place wider items in a wider column.

The makeResponsive higher-order component assumes a fixed column width to set its breakpoints so something else would be needed here.

@bento-n-box
Copy link

bento-n-box commented May 13, 2016

+1

@newsiberian
Copy link

Hello. @dantrain, thank you for such a great project.
I added new layout. This is not exactly what were asked, but it is close. This enough for my use case. Layout uses the column width and ratio x1, x2, x3.
screencast-1465806660

@dantrain
Copy link
Owner

@newsiberian Wow looks awesome!

@Hazantip
Copy link

@newsiberian Looks amazing! but how to use it ? I understand that i need to download from your branch, make layout attr as layout={layout.horizontal}, but how i can get different width of elements? Can you show code sample?

@wyhinton
Copy link

Any chance this could get merged?

@wyhinton
Copy link

wyhinton commented Oct 1, 2021

I've created a simple example demonstrating @newsiberian 's horizontal layout: https://github.com/wyhinton/react-stonecutter-horizontal-example

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants