From 0fcd6221b50fa796b85292b81f8a1d67ef331d9d Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Fri, 8 May 2026 12:19:50 -0300 Subject: [PATCH] fix(canvas): use lucide-react Undo2/Redo2 for the toolbar icons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The two hand-rolled curved-arrow SVGs I drew in bd5fd18 looked off — the arrowheads were misaligned and the curve clipped at the bottom of the viewBox. Swapped both for the canonical lucide-react icons (Undo2 / Redo2), which match the visual weight + alignment of the rest of the toolbar. lucide-react was already in the OSS deps (added when other parts of the app started using it). No new dependency. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../components/simulator/SimulatorCanvas.tsx | 29 ++----------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/simulator/SimulatorCanvas.tsx b/frontend/src/components/simulator/SimulatorCanvas.tsx index 240f5219..42837e61 100644 --- a/frontend/src/components/simulator/SimulatorCanvas.tsx +++ b/frontend/src/components/simulator/SimulatorCanvas.tsx @@ -1,6 +1,7 @@ import { useSimulatorStore, getEsp32Bridge } from '../../store/useSimulatorStore'; import React, { useEffect, useState, useRef, useCallback } from 'react'; import { createPortal } from 'react-dom'; +import { Undo2, Redo2 } from 'lucide-react'; import { ESP32_ADC_PIN_MAP } from '../velxio-components/Esp32Element'; import { ComponentPickerModal } from '../ComponentPickerModal'; import { ComponentPropertyDialog } from './ComponentPropertyDialog'; @@ -1922,19 +1923,7 @@ export const SimulatorCanvas = ({ headerSlot }: SimulatorCanvasProps = {}) => { } aria-label="Undo" > - - - - +