diff --git a/src/app/globals.css b/src/app/globals.css index 8e770ff..86fa421 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -207,4 +207,62 @@ html { font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.07); z-index: 1; +} + +/* Range slider styles */ +.slider { + -webkit-appearance: none; + appearance: none; + background: transparent; + cursor: pointer; +} + +.slider::-webkit-slider-track { + background: #e5e7eb; + height: 8px; + border-radius: 4px; +} + +.dark .slider::-webkit-slider-track { + background: #4b5563; +} + +.slider::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + background: #2563eb; + height: 16px; + width: 16px; + border-radius: 50%; + border: 2px solid #ffffff; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); +} + +.slider::-webkit-slider-thumb:hover { + background: #1d4ed8; +} + +.slider::-moz-range-track { + background: #e5e7eb; + height: 8px; + border-radius: 4px; + border: none; +} + +.dark .slider::-moz-range-track { + background: #4b5563; +} + +.slider::-moz-range-thumb { + background: #2563eb; + height: 16px; + width: 16px; + border-radius: 50%; + border: 2px solid #ffffff; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); + cursor: pointer; +} + +.slider::-moz-range-thumb:hover { + background: #1d4ed8; } \ No newline at end of file diff --git a/src/components/MapLayerSettings.tsx b/src/components/MapLayerSettings.tsx index c3dd0f7..927f878 100644 --- a/src/components/MapLayerSettings.tsx +++ b/src/components/MapLayerSettings.tsx @@ -147,6 +147,30 @@ export default function MapLayerSettingsComponent({ onSettingsChange }: MapLayer Show all neighbors + {/* Path stroke width */} +
+ + updateSetting('strokeWidth', parseInt(e.target.value))} + className="w-full h-2 bg-gray-200 dark:bg-neutral-600 rounded-lg appearance-none cursor-pointer slider" + /> +
+ 1px + {settings.strokeWidth}px + 8px +
+

+ Controls the thickness of neighbor connection lines +

+
+ {/* Use colors - indented sub-option */}