From 5c0a55d7ff41a20caedee2aa526eefbc7c6b0624 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 11 Apr 2024 17:55:05 +0300 Subject: [PATCH] Remove custom right sidebar section class --- app/assets/javascripts/leaflet.key.js | 2 +- app/assets/javascripts/leaflet.layers.js | 4 ++-- app/assets/javascripts/leaflet.share.js | 6 +++--- app/assets/stylesheets/common.scss | 5 ----- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/app/assets/javascripts/leaflet.key.js b/app/assets/javascripts/leaflet.key.js index 088d0f9d3..f89ae0c3d 100644 --- a/app/assets/javascripts/leaflet.key.js +++ b/app/assets/javascripts/leaflet.key.js @@ -3,7 +3,7 @@ L.OSM.key = function (options) { control.onAddPane = function (map, button, $ui) { var $section = $("
") - .attr("class", "section") + .attr("class", "p-3") .appendTo($ui); $ui diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index b78ac6e07..1a34b05c2 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -5,7 +5,7 @@ L.OSM.layers = function (options) { var layers = options.layers; var baseSection = $("
") - .attr("class", "section base-layers d-grid gap-3") + .attr("class", "base-layers d-grid gap-3 p-3 border-bottom border-secondary-subtle") .appendTo($ui); layers.forEach(function (layer, i) { @@ -79,7 +79,7 @@ L.OSM.layers = function (options) { if (OSM.STATUS !== "api_offline" && OSM.STATUS !== "database_offline") { var overlaySection = $("
") - .attr("class", "section overlay-layers") + .attr("class", "overlay-layers p-3") .appendTo($ui); $("

") diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index eb351fa02..69db10ad7 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -10,7 +10,7 @@ L.OSM.share = function (options) { // Link / Embed var $linkSection = $("

") - .attr("class", "section share-link") + .attr("class", "share-link p-3 border-bottom border-secondary-subtle") .appendTo($ui); $("

") @@ -104,7 +104,7 @@ L.OSM.share = function (options) { // Geo URI var $geoUriSection = $("
") - .attr("class", "section share-geo-uri") + .attr("class", "share-geo-uri p-3 border-bottom border-secondary-subtle") .appendTo($ui); $("

") @@ -119,7 +119,7 @@ L.OSM.share = function (options) { // Image var $imageSection = $("
") - .attr("class", "section share-image") + .attr("class", "share-image p-3") .appendTo($ui); $("

") diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index a1cae7a36..3e80e66f5 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -383,11 +383,6 @@ body.small-nav { width: 250px; height: 100%; overflow: auto; - - .section { - border-bottom: 1px solid $grey; - padding: $spacer; - } } } -- 2.39.5