feat: show group/group and link action in mobile (#4795)

This commit is contained in:
Aakansha Doshi 2022-02-16 15:41:35 +05:30 committed by GitHub
parent 59d0a77862
commit b2767924de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -150,12 +150,12 @@ export const SelectedShapeActions = ({
</div>
</fieldset>
)}
{!isMobile && !isEditing && targetElements.length > 0 && (
{!isEditing && targetElements.length > 0 && (
<fieldset>
<legend>{t("labels.actions")}</legend>
<div className="buttonList">
{renderAction("duplicateSelection")}
{renderAction("deleteSelectedElements")}
{!isMobile && renderAction("duplicateSelection")}
{!isMobile && renderAction("deleteSelectedElements")}
{renderAction("group")}
{renderAction("ungroup")}
{targetElements.length === 1 && renderAction("link")}

View File

@ -122,7 +122,8 @@ export const Hyperlink = ({
if (
appState.draggingElement ||
appState.resizingElement ||
appState.isRotating
appState.isRotating ||
appState.openMenu
) {
return null;
}
@ -248,6 +249,7 @@ export const actionLink = register({
appState: {
...appState,
showHyperlinkPopup: "editor",
openMenu: null,
},
commitToHistory: true,
};