refactor(canvas): remove unused animation and optimize edge insertion timing

- Removed the unused CSS animation for edge insertion to streamline the codebase.
- Updated the edge insertion reflow duration from 1297ms to 997ms for improved performance.
- Refactored transition timing function for edge insertion to enhance animation smoothness.
- Cleaned up related test cases to reflect the changes in edge insertion logic.
This commit is contained in:
2026-04-06 21:30:56 +02:00
parent b7771764d8
commit 36e8b7d3db
5 changed files with 57 additions and 199 deletions

View File

@@ -82,7 +82,7 @@ interface CanvasInnerProps {
canvasId: Id<"canvases">;
}
const EDGE_INSERT_REFLOW_SETTLE_MS = 1297;
const EDGE_INSERT_REFLOW_SETTLE_MS = 997;
function CanvasInner({ canvasId }: CanvasInnerProps) {
const t = useTranslations('toasts');