Fix alignment and block gap settings for columns and groups

In this commit, I disabled the layout for both groups and columns.
This allows using our custom css for alignment of images (left, right and center).
The CSS for constrained layout uses floats and it breaks spacing in the editor.
[MAILPOET-6249]
This commit is contained in:
Rostislav Wolny
2024-10-21 13:36:47 +02:00
committed by Jan Lysý
parent e9d6658b20
commit b0507bca9e
2 changed files with 8 additions and 0 deletions

View File

@@ -15,6 +15,10 @@ function disableGroupVariations() {
variations: settings.variations.filter(
(variation) => variation.name === 'group',
),
supports: {
...settings.supports,
layout: false,
},
};
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-return

View File

@@ -164,6 +164,10 @@
margin-left: auto;
margin-right: auto;
}
&.alignright {
margin-left: auto;
}
}
.editor-styles-wrapper {