@@ -374,15 +374,45 @@ export const Controls: React.FC<ControlsProps> = ({
374374 { /* Analysis */ }
375375 < div className = "space-y-3" >
376376 < label className = { `text-xs font-semibold uppercase tracking-wider ${ subtleText } ` } > Analysis</ label >
377- < button
378- onClick = { onToggleContactMap }
379- className = { `w-full flex items-center justify-between px-2 py-1.5 rounded border transition-all ${ cardBg } hover:opacity-80` }
380- >
381- < div className = "flex items-center gap-2" >
382- < Maximize className = "w-4 h-4" />
383- < span className = "text-xs font-medium" > Contact Map</ span >
384- </ div >
385- </ button >
377+ < div className = "space-y-2" >
378+ < button
379+ onClick = { onToggleContactMap }
380+ className = { `w-full flex items-center justify-between px-3 py-2 rounded-lg border transition-all ${ cardBg } hover:opacity-80` }
381+ >
382+ < div className = "flex items-center gap-2" >
383+ < Maximize className = "w-4 h-4" />
384+ < span className = "text-xs font-medium" > Contact Map</ span >
385+ </ div >
386+ </ button >
387+
388+ < button
389+ onClick = { ( ) => setIsMeasurementMode ( ! isMeasurementMode ) }
390+ className = { `w-full flex items-center justify-between px-3 py-2 rounded-lg border transition-all ${ isMeasurementMode
391+ ? 'bg-amber-500/10 border-amber-500 text-amber-500'
392+ : `${ cardBg } hover:opacity-80`
393+ } `}
394+ >
395+ < div className = "flex items-center gap-2" >
396+ < Ruler className = "w-4 h-4" />
397+ < span className = "text-xs font-medium" > { isMeasurementMode ? 'Measurement Active' : 'Measure Distance' } </ span >
398+ </ div >
399+ < div className = { `w-3 h-3 rounded-full ${ isMeasurementMode ? 'bg-amber-500' : 'bg-neutral-500' } ` } />
400+ </ button >
401+
402+ < button
403+ onClick = { ( ) => setIsAnnotationMode ( ! isAnnotationMode ) }
404+ className = { `w-full flex items-center justify-between px-3 py-2 rounded-lg border transition-all ${ isAnnotationMode
405+ ? 'bg-purple-500/10 border-purple-500 text-purple-500'
406+ : `${ cardBg } hover:opacity-80`
407+ } `}
408+ >
409+ < div className = "flex items-center gap-2" >
410+ < Crosshair className = "w-4 h-4" />
411+ < span className = "text-xs font-medium" > { isAnnotationMode ? 'Annotation Active' : 'Annotate Residues' } </ span >
412+ </ div >
413+ < div className = { `w-3 h-3 rounded-full ${ isAnnotationMode ? 'bg-purple-500' : 'bg-neutral-500' } ` } />
414+ </ button >
415+ </ div >
386416 </ div >
387417
388418 { /* Session */ }
@@ -625,27 +655,6 @@ export const Controls: React.FC<ControlsProps> = ({
625655 </ button >
626656 </ div >
627657
628- < button
629- onClick = { ( ) => setIsMeasurementMode ( ! isMeasurementMode ) }
630- className = { `w-full flex items-center justify-center gap-2 border py-2 rounded-lg transition-all ${ isMeasurementMode
631- ? 'bg-amber-500/20 border-amber-500/50 text-amber-500 font-medium'
632- : `${ cardBg } hover:opacity-80`
633- } `}
634- >
635- < Ruler className = "w-4 h-4" />
636- < span > { isMeasurementMode ? 'Active' : 'Measure Distance' } </ span >
637- </ button >
638-
639- < button
640- onClick = { ( ) => setIsAnnotationMode ( ! isAnnotationMode ) }
641- className = { `w-full flex items-center justify-center gap-2 border py-2 rounded-lg transition-all ${ isAnnotationMode
642- ? 'bg-purple-500/20 border-purple-500/50 text-purple-500 font-medium'
643- : `${ cardBg } hover:opacity-80`
644- } `}
645- >
646- < Crosshair className = "w-4 h-4" />
647- < span > { isAnnotationMode ? 'Annotation Active' : 'Annotate Residues' } </ span >
648- </ button >
649658 </ div >
650659 </ div >
651660 </ div >
0 commit comments