@@ -2092,7 +2092,33 @@ <h3 className="text-red-400 font-bold uppercase text-xs mb-3 flex items-center g
20922092 onNodeContextMenu = { onNodeContextMenu } // <-- Escucha el click derecho
20932093 onPaneClick = { ( ) => setMenu ( null ) } // <-- Cierra el menú al hacer click afuera
20942094 >
2095- { prefs . showMinimap && < RFObj . MiniMap style = { { background :'#1a1a1a' } } nodeStrokeColor = "#555" /> }
2095+ { prefs . showMinimap && (
2096+ < RFObj . MiniMap
2097+ style = { { background : '#111827' , border : '1px solid #374151' , borderRadius : '8px' } }
2098+ nodeColor = { ( n ) => {
2099+ const colors = {
2100+ py_var : '#ca8a04' , py_input : '#475569' , py_print : '#4b5563' ,
2101+ py_int : '#be185d' , py_float : '#db2777' , py_math : '#0d9488' ,
2102+ py_compare : '#0e7490' , py_if : '#ea580c' , py_elif : '#f97316' ,
2103+ py_else : '#b91c1c' , py_loop : '#c2410c' , py_while : '#9a3412' ,
2104+ py_control : '#991b1b' , py_class : '#4338ca' , py_init : '#4f46e5' ,
2105+ py_self : '#6366f1' , py_func : '#7c3aed' , py_return : '#e11d48' ,
2106+ py_call : '#e11d48' , py_try : '#d97706' , py_except : '#b45309' ,
2107+ py_import : '#0369a1'
2108+ } ;
2109+ return colors [ n . type ] || '#6b7280' ;
2110+ } }
2111+ nodeStrokeColor = { ( n ) => {
2112+ // Si el nodo tiene un error tipográfico, el minimapa lo resalta en rojo vivo
2113+ if ( n . data ?. error ) return '#ef4444' ;
2114+ return '#1f2937' ;
2115+ } }
2116+ nodeBorderRadius = { 8 }
2117+ maskColor = "rgba(0, 0, 0, 0.6)"
2118+ pannable = { true }
2119+ zoomable = { true }
2120+ />
2121+ ) }
20962122 < Background color = "#333" gap = { 20 } />
20972123 < Controls className = "bg-gray-800 border-gray-700 fill-white text-white" />
20982124 </ ReactFlow >
0 commit comments