diff --git a/app/javascript/controllers/maps_controller.js b/app/javascript/controllers/maps_controller.js index 8e5adaf7..f9480940 100644 --- a/app/javascript/controllers/maps_controller.js +++ b/app/javascript/controllers/maps_controller.js @@ -803,13 +803,18 @@ export default class extends BaseController { const SettingsControl = L.Control.extend({ onAdd: (map) => { const button = L.DomUtil.create('button', 'map-settings-button tooltip tooltip-right'); - button.innerHTML = ''; // Gear icon + button.innerHTML = ''; // Gear icon button.setAttribute('data-tip', 'Settings'); // Style the button with theme-aware styling applyThemeToButton(button, this.userTheme); - button.style.width = '32px'; - button.style.height = '32px'; + button.style.width = '30px'; + button.style.height = '30px'; + button.style.display = 'flex'; + button.style.alignItems = 'center'; + button.style.justifyContent = 'center'; + button.style.padding = '0'; + button.style.borderRadius = '4px'; // Disable map interactions when clicking the button L.DomEvent.disableClickPropagation(button);