Spaces:
Sleeping
Sleeping
MAO commited on
Commit ·
1e7f25c
1
Parent(s): 7072bc0
UI Update: Remove Template link and reposition Delete button
Browse files483 unmodified lines4844854864874884894904914924934944954964976 unmodified lines5045055065075085093 unmodified lines513514515516517518519483 unmodified lines</div><div className="flex items-center space-x-3"><ahref="./drawingPaperTemplate.html"target="_blank"rel="noopener noreferrer"className="flex items-center gap-2 px-3 py-1.5 bg-purple-600 hover:bg-purple-500 rounded text-xs font-medium transition-all text-white no-underline">Template</a><div className="flex space-x-2"><label className="flex items-center gap-2 px-3 py-1.5 bg-gray-700 hover:bg-gray-600 rounded cursor-pointer text-xs transition-colors border border-gray-600"><Upload size={14} /> <span>Image A</span>6 unmodified lines</div><div className="w-px h-6 bg-gray-700 mx-1"></div><button onClick={addRegion} className="flex items-center gap-2 px-3 py-1.5 bg-blue-600 hover:bg-blue-500 rounded text-xs font-medium transition-all"><Plus size={14} /> New Region</button><div className="flex space-x-2"><label className="flex items-center gap-2 px-3 py-1.5 bg-gray-700 hover:bg-gray-600 rounded cursor-pointer text-xs transition-colors">3 unmodified lines<button onClick={exportJson} className="flex items-center gap-2 px-3 py-1.5 bg-gray-700 hover:bg-gray-600 rounded text-xs transition-colors"><Save size={14} /> Export JSON</button></div>{selectedRegionId && <button onClick={() => deleteRegion(selectedRegionId)} className="flex items-center gap-2 px-3 py-1.5 bg-red-900/30 text-red-300 hover:bg-red-900/50 rounded border border-red-800/40 text-xs transition-colors"><Trash2 size={14} /> Delete</button>}<div className="w-px h-6 bg-gray-700 mx-1"></div>483 unmodified lines4844854864874884894906 unmodified lines4974984995005015025033 unmodified lines507508509510511512483 unmodified lines</div><div className="flex items-center space-x-3"><div className="flex space-x-2"><label className="flex items-center gap-2 px-3 py-1.5 bg-gray-700 hover:bg-gray-600 rounded cursor-pointer text-xs transition-colors border border-gray-600"><Upload size={14} /> <span>Image A</span>6 unmodified lines</div><div className="w-px h-6 bg-gray-700 mx-1"></div><button onClick={addRegion} className="flex items-center gap-2 px-3 py-1.5 bg-blue-600 hover:bg-blue-500 rounded text-xs font-medium transition-all"><Plus size={14} /> New Region</button>{selectedRegionId && <button onClick={() => deleteRegion(selectedRegionId)} className="flex items-center gap-2 px-3 py-1.5 bg-red-900/30 text-red-300 hover:bg-red-900/50 rounded border border-red-800/40 text-xs transition-colors"><Trash2 size={14} /> Delete</button>}<div className="flex space-x-2"><label className="flex items-center gap-2 px-3 py-1.5 bg-gray-700 hover:bg-gray-600 rounded cursor-pointer text-xs transition-colors">3 unmodified lines<button onClick={exportJson} className="flex items-center gap-2 px-3 py-1.5 bg-gray-700 hover:bg-gray-600 rounded text-xs transition-colors"><Save size={14} /> Export JSON</button></div><div className="w-px h-6 bg-gray-700 mx-1"></div>
src/App.jsx+2-9