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:
Matthias
2026-03-28 22:47:30 +01:00
parent 4e55460792
commit acb5bca3b8
2 changed files with 2 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ export default function CanvasToolbar({
<Hand className="size-4" />,
"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
type="button"

View File

@@ -2103,8 +2103,7 @@ function CanvasInner({ canvasId }: CanvasInnerProps) {
onDrop={onDrop}
fitView
minZoom={CANVAS_MIN_ZOOM}
snapToGrid
snapGrid={[16, 16]}
snapToGrid={false}
deleteKeyCode={["Backspace", "Delete"]}
multiSelectionKeyCode="Shift"
nodesConnectable={!scissorsMode}