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

Visual improvements #18

Merged
merged 3 commits into from
Sep 6, 2021
Merged

Visual improvements #18

merged 3 commits into from
Sep 6, 2021

Conversation

sneridagh
Copy link
Collaborator

image

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?

Copy link
Member

@tiberiuichim tiberiuichim left a 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}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!!

@avoinea
Copy link
Member

avoinea commented Sep 6, 2021

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

It shouldn't be required, it's used only in Edit mode to visually annotate the accordion section:

accordion-title

Also, I guess next thing is to make it schemaExtender aware. What do you think?

💯

Copy link
Member

@nileshgulia1 nileshgulia1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Thanks!

@avoinea avoinea merged commit 0b8e63f into develop Sep 6, 2021
@avoinea avoinea deleted the sneridagh-improvements branch September 6, 2021 18:46
nileshgulia1 added a commit that referenced this pull request Sep 6, 2021
Release - Visual improvements (#18)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants