]> git.openstreetmap.org Git - rails.git/commitdiff
Use bootstrap form controls for the link and html controls
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Sep 2023 14:55:16 +0000 (15:55 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Sep 2023 17:10:02 +0000 (18:10 +0100)
app/assets/javascripts/leaflet.share.js
app/assets/stylesheets/common.scss

index c72760c972e5b8733af2e81b1e3e24d5edcafdf1..5fb189a7684765655115c54fe1d31f9b548f6522 100644 (file)
@@ -68,6 +68,7 @@ L.OSM.share = function (options) {
       .append($("<input>")
         .attr("id", "long_input")
         .attr("type", "text")
+        .attr("class", "form-control form-control-sm font-monospace")
         .on("click", select));
 
     $("<div>")
@@ -77,6 +78,7 @@ L.OSM.share = function (options) {
       .append($("<input>")
         .attr("id", "short_input")
         .attr("type", "text")
+        .attr("class", "form-control form-control-sm font-monospace")
         .on("click", select));
 
     $("<div>")
@@ -86,6 +88,7 @@ L.OSM.share = function (options) {
       .append(
         $("<textarea>")
           .attr("id", "embed_html")
+          .attr("class", "form-control form-control-sm font-monospace")
           .on("click", select))
       .append(
         $("<p>")
index f2c06052a6844507cb36b8fcec654da285462027..5fcbd83ab5e081d23271080659e7468a12dc4914 100644 (file)
@@ -573,16 +573,6 @@ body.small-nav {
 }
 
 .share-ui {
-  .share-link {
-    input[type=text],
-    textarea {
-      width: 100%;
-      font-family: monospace;
-      font-size: small;
-      line-height: 1.3;
-    }
-  }
-
   #mapnik_scale {
     width: 100px;
   }