-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix: resetPaddings for base-block #756
Conversation
Preview is ready. |
@@ -30,7 +31,8 @@ export const ConstructorBlock: React.FC<WithChildren<ConstructorBlockProps>> = ( | |||
[data], | |||
); | |||
|
|||
const {top, bottom} = indent || {top: 'l', bottom: 'l'}; | |||
const {top, bottom} = | |||
indent || data.resetPaddings ? {top: '0', bottom: '0'} : {top: 'l', bottom: 'l'}; |
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.
sounds like we should move all the indent
logic to BlockBase
component and handle it like other base block properties like anchor
or resetPaddings
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.
I agree
No description provided.