react-stonecutter icon indicating copy to clipboard operation
react-stonecutter copied to clipboard

Feature Request: Varied column widths.

Open phil3903 opened this issue 8 years ago • 7 comments

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

phil3903 avatar Apr 10 '16 21:04 phil3903

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.

dantrain avatar Apr 12 '16 09:04 dantrain

+1

bento-n-box avatar May 13 '16 03:05 bento-n-box

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

newsiberian avatar Jun 16 '16 11:06 newsiberian

@newsiberian Wow looks awesome!

dantrain avatar Jun 17 '16 08:06 dantrain

@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?

Hazantip avatar Sep 26 '16 11:09 Hazantip

Any chance this could get merged?

wyhinton avatar Sep 26 '21 19:09 wyhinton

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

image

wyhinton avatar Oct 01 '21 19:10 wyhinton