Skip to content

Commit

Permalink
Add disable Teaser block Align handlers for teasers inside containers…
Browse files Browse the repository at this point in the history
…/grids
  • Loading branch information
sneridagh committed Dec 10, 2024
1 parent 1134a96 commit 5d1fc4f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/volto/src/components/manage/Blocks/Teaser/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,15 @@ export const gridTeaserDisableStylingSchema = ({ schema, formData, intl }) => {
schema.fieldsets = schema.fieldsets.filter((item) => item.id !== 'styling');
return schema;
};

export const gridTeaserDisableAlignHandlersSchema = ({
schema,
formData,
intl,
}) => {
schema.properties.styles.schema.fieldsets[0].fields =
schema.properties.styles.schema.fieldsets[0].fields.filter(
(item) => !['align'].includes(item),
);
return schema;
};

0 comments on commit 5d1fc4f

Please sign in to comment.