mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add the shape lock button for mobile (#1054)
This commit is contained in:
parent
e38045ccad
commit
104e48b6cb
5 changed files with 43 additions and 15 deletions
|
@ -12,7 +12,6 @@ type LockIconProps = {
|
|||
checked: boolean;
|
||||
onChange?(): void;
|
||||
size?: LockIconSize;
|
||||
isButton?: boolean;
|
||||
};
|
||||
|
||||
const DEFAULT_SIZE: LockIconSize = "m";
|
||||
|
@ -46,9 +45,7 @@ export function LockIcon(props: LockIconProps) {
|
|||
|
||||
return (
|
||||
<label
|
||||
className={`ToolIcon ToolIcon__lock ${
|
||||
props.isButton ? "ToolIcon_type_button" : "ToolIcon_type_floating"
|
||||
} ${sizeCn}`}
|
||||
className={`ToolIcon ToolIcon__lock ToolIcon_type_floating ${sizeCn}`}
|
||||
title={`${props.title} ${getShortcutKey("Q")}`}
|
||||
>
|
||||
<input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue