mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-08 18:17:11 +02:00
fix: center align text when wrapped in container via context menu (#6480)
* rename action to wrapTextInContainer * fix: center align text when wrapped in container via context menu * revert translation key * fix tests
This commit is contained in:
@@ -196,8 +196,8 @@ const pushContainerBelowText = (
|
||||
return updatedElements;
|
||||
};
|
||||
|
||||
export const actionCreateContainerFromText = register({
|
||||
name: "createContainerFromText",
|
||||
export const actionWrapTextInContainer = register({
|
||||
name: "wrapTextInContainer",
|
||||
contextItemLabel: "labels.createContainerFromText",
|
||||
trackEvent: { category: "element" },
|
||||
predicate: (elements, appState) => {
|
||||
@@ -286,6 +286,7 @@ export const actionCreateContainerFromText = register({
|
||||
containerId: container.id,
|
||||
verticalAlign: VERTICAL_ALIGN.MIDDLE,
|
||||
boundElements: null,
|
||||
textAlign: TEXT_ALIGN.CENTER,
|
||||
},
|
||||
false,
|
||||
);
|
||||
|
Reference in New Issue
Block a user