mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add duplicate button for mobile view (#1146)
* Add a icon for dulplication * Add PanelComponent for duplication * Add duplicate button for mobile * Add styles for layout action buttons * Add a translation for 'Actions' * Show left action buttons only for desktop * Add duplicate button at the bottom of mobile It is provided depending on whether or not it is `multiElement` to maintain space between buttons.
This commit is contained in:
parent
e9f80d7c31
commit
86d0da5204
6 changed files with 49 additions and 7 deletions
|
@ -122,7 +122,9 @@ export function MobileMenu({
|
|||
{actionManager.renderAction("toggleEditMenu")}
|
||||
{actionManager.renderAction("undo")}
|
||||
{actionManager.renderAction("redo")}
|
||||
{actionManager.renderAction("finalize")}
|
||||
{actionManager.renderAction(
|
||||
appState.multiElement ? "finalize" : "duplicateSelection",
|
||||
)}
|
||||
{actionManager.renderAction("deleteSelectedElements")}
|
||||
</div>
|
||||
{appState.scrolledOutside && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue