From 18551fb940558e8ce7c340053c65f69c4ecee089 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Mon, 20 Oct 2025 20:41:01 +0200 Subject: [PATCH] Update map settings button size and styling --- app/javascript/controllers/maps_controller.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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);