fix: update canvas toolbar and canvas settings for improved usability
- Updated the CanvasToolbar to provide a clearer label for the scissors tool, enhancing user understanding of its functionality. - Modified the CanvasInner component to disable grid snapping, allowing for more flexible positioning of elements on the canvas.
This commit is contained in:
@@ -138,7 +138,7 @@ export default function CanvasToolbar({
|
|||||||
<Hand className="size-4" />,
|
<Hand className="size-4" />,
|
||||||
"Hand (H) — schwenken: Leertaste gedrückt halten und ziehen oder linke Maustaste",
|
"Hand (H) — schwenken: Leertaste gedrückt halten und ziehen oder linke Maustaste",
|
||||||
)}
|
)}
|
||||||
{toolBtn("scissor", <Scissors className="size-4" />, "Kanten schneiden")}
|
{toolBtn("scissor", <Scissors className="size-4" />, "Schere (K) — Verbindungen kappen")}
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
@@ -2103,8 +2103,7 @@ function CanvasInner({ canvasId }: CanvasInnerProps) {
|
|||||||
onDrop={onDrop}
|
onDrop={onDrop}
|
||||||
fitView
|
fitView
|
||||||
minZoom={CANVAS_MIN_ZOOM}
|
minZoom={CANVAS_MIN_ZOOM}
|
||||||
snapToGrid
|
snapToGrid={false}
|
||||||
snapGrid={[16, 16]}
|
|
||||||
deleteKeyCode={["Backspace", "Delete"]}
|
deleteKeyCode={["Backspace", "Delete"]}
|
||||||
multiSelectionKeyCode="Shift"
|
multiSelectionKeyCode="Shift"
|
||||||
nodesConnectable={!scissorsMode}
|
nodesConnectable={!scissorsMode}
|
||||||
|
|||||||
Reference in New Issue
Block a user