@@ -358,20 +358,7 @@ export const Controls: React.FC<ControlsProps> = ({
358358 </ div >
359359
360360 < div className = "flex items-center gap-2" >
361- < button
362- onClick = { ( ) => {
363- setIsMeasurementMode ( ! isMeasurementMode ) ;
364- if ( ! isMeasurementMode && onToggleMeasurement ) onToggleMeasurement ( ) ;
365- } }
366- className = { `p-2 rounded-lg transition-colors ${ isMeasurementMode
367- ? 'bg-cyan-500/20 text-cyan-400 border border-cyan-500/50'
368- : 'bg-neutral-800 text-neutral-400 hover:text-white hover:bg-neutral-700'
369- } `}
370- title = "Measure Distance"
371- >
372- < Ruler className = "w-5 h-5" />
373- </ button >
374- < div className = "w-px h-6 bg-neutral-800 mx-1" />
361+
375362 < button
376363 onClick = { onToggleLibrary }
377364 className = { `p-2 rounded-full transition-colors ${ isLightMode ? 'bg-white border border-neutral-900 text-black hover:bg-neutral-100' : 'bg-neutral-800/80 text-neutral-400 hover:bg-neutral-700' } ` }
@@ -430,6 +417,19 @@ export const Controls: React.FC<ControlsProps> = ({
430417 < BookOpen className = "w-3.5 h-3.5 group-hover:text-purple-500 transition-colors" />
431418 < span className = "text-xs font-medium" > Library</ span >
432419 </ button >
420+
421+ < button
422+ onClick = { ( ) => {
423+ setIsMeasurementMode ( ! isMeasurementMode ) ;
424+ if ( ! isMeasurementMode && onToggleMeasurement ) onToggleMeasurement ( ) ;
425+ } }
426+ className = { `col-span-2 w-full flex items-center justify-center gap-2 border py-2 rounded-lg transition-all group ${ isMeasurementMode
427+ ? 'bg-cyan-500/10 border-cyan-500/50 text-cyan-500'
428+ : `${ cardBg } hover:opacity-80` } `}
429+ >
430+ < Ruler className = { `w-3.5 h-3.5 ${ isMeasurementMode ? 'text-cyan-500' : 'group-hover:text-cyan-500' } transition-colors` } />
431+ < span className = "text-xs font-medium" > Measure Distance</ span >
432+ </ button >
433433 </ div >
434434 </ div >
435435
@@ -805,13 +805,7 @@ export const Controls: React.FC<ControlsProps> = ({
805805 }
806806
807807 < div className = "grid grid-cols-2 gap-2" >
808- < button
809- onClick = { ( ) => setIsMeasurementMode ( ! isMeasurementMode ) }
810- className = { `flex items-center justify-between px-3 py-2 rounded-lg border transition-all ${ isMeasurementMode ? 'bg-amber-500/10 border-amber-500 text-amber-500' : `${ cardBg } hover:opacity-80` } ` }
811- >
812- < span className = "text-xs font-medium" > Measure</ span >
813- < Ruler className = "w-3.5 h-3.5" />
814- </ button >
808+
815809 < button
816810 onClick = { onToggleContactMap }
817811 className = { `flex items-center justify-between px-3 py-2 rounded-lg border transition-all ${ cardBg } hover:opacity-80` }
0 commit comments