Skip to content

Commit

Permalink
Add missing styleWrapper style builder information in container/Grid (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored Dec 11, 2024
1 parent 08893ab commit fa9a793
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/volto/news/6527.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing styleWrapper style builder information in container/Grid. @sneridagh
1 change: 1 addition & 0 deletions packages/volto/news/6527.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add disable Teaser block Align handlers for teasers inside containers. @sneridagh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl';
import NewBlockAddButton from './NewBlockAddButton';
import cx from 'classnames';
import { isInteractiveElement } from '@plone/volto/helpers/Utils/Utils';

import { buildStyleObjectFromData } from '@plone/volto/helpers/Blocks/Blocks';
import clearSVG from '@plone/volto/icons/clear.svg';

const messages = defineMessages({
Expand Down Expand Up @@ -38,12 +38,15 @@ const EditBlockWrapper = (props) => {
onChangeBlock(block, { '@type': 'empty' });
}

const style = buildStyleObjectFromData(data);

return (
<div
ref={draginfo.innerRef}
{...draginfo.draggableProps}
{...draginfo.dragHandleProps}
className={cx(`block-editor-${data['@type']} contained`, { selected })}
style={style}
>
<div
role="presentation"
Expand Down

0 comments on commit fa9a793

Please sign in to comment.