-
Notifications
You must be signed in to change notification settings - Fork 10
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
Visual improvements #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and much appreciated! Thanks!
@@ -158,7 +161,7 @@ class EditBlockWrapper extends React.Component { | |||
this.setState({ addNewBlockOpened: false }); | |||
}} | |||
currentBlock={block} | |||
allowedBlocks={allowedBlocks} | |||
allowedBlocks={allowedBlocks || allowedBlocksFromConfig} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!!!
It shouldn't be required, it's used only in Edit mode to visually annotate the accordion section:
💯 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. Thanks!
Release - Visual improvements (#18)
Made the panel widget appear as much as possible like the
object_list
widget. Since this widget (panel widget) is quite different (saves an object that has the blocks/blocks_layout nested from first level) I just revamped its look and feel. I used the title as item title in the widget too, addressed some CSS issues.Also as bonus: addressed some CSS issues in rendering and added the ability to pass an
allowedBlocks
list from the block config itself.@avoinea What's the title for? I can see it's required, but not used in rendering at all. I can see it's uses, but does it pays off to be required?
Also, I guess next thing is to make it schemaExtender aware. What do you think?