From 0ea6646fb6d86b11c78bc554168b76096fe21821 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 6 Sep 2023 15:31:49 +0100 Subject: [PATCH] Use bootstrap for share forms This fixes alignment of the checkboxes, and uses bootstrap form controls for the image format and scale inputs. Move the custom dimensions input to beside the custom dimensions display. --- app/assets/javascripts/leaflet.share.js | 99 ++++++++++++++----------- app/assets/stylesheets/common.scss | 9 +-- 2 files changed, 59 insertions(+), 49 deletions(-) diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 7b1c995c2..c72760c97 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -23,17 +23,15 @@ L.OSM.share = function (options) { $("
") .attr("class", "form-check mb-3") .appendTo($form) - .append( - $("