wagtail-deprecated / react-streamfield

Powerful field for inserting multiple blocks with nesting. (NO LONGER MAINTAINED - See Wagtail 2.13 Release Notes)
https://wagtail.github.io/react-streamfield/public/
35 stars 12 forks source link

Make child struct collapsible #9

Closed yohanlebret closed 5 years ago

yohanlebret commented 5 years ago

I have added the possibility to make a nested Struct block collapsible (check the"Struct block as a struct block field collapsible" element in the example storybook)

BertrandBordage commented 5 years ago

Thank you @yohanlebret! I am not merging it in that state though, because the look is a little weird: image image

I am trying to find a simpler solution that would reuse the existing collapsible header.

yohanlebret commented 5 years ago

Yes, I understand. I will try to improve the UX and design when I will have time.

BertrandBordage commented 5 years ago

Don’t worry, I made a better-looking implementation in 5897ab06b565809d0df75612045aaf723b6babf6 :) It’s also simpler because it reuses existing components. It looks like this: Capture d'écran 2019-08-07 16:31:07