From c2587b5b57e4664f79cc5587139df92663831434 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 16 Jun 2021 13:28:33 +0100 Subject: [PATCH] Rework the routing credit to use a bootstrap class The padding is unnecessary given it's in a paragraph anyway. --- app/assets/javascripts/index/directions.js | 2 +- app/assets/stylesheets/common.scss | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 18466864b..6fd02a57b 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -312,7 +312,7 @@ OSM.Directions = function (map) { $("#turnbyturn").append(row); }); - $("#sidebar_content").append("

" + + $("#sidebar_content").append("

" + I18n.t("javascripts.directions.instructions.courtesy", { link: chosenEngine.creditline }) + "

"); diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 411e6167b..80e0d46fe 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1026,15 +1026,6 @@ tr.turn:hover { } } -/* Rules for the routing sidebar */ - -#sidebar_content { - #routing_credit { - text-align: center; - padding: 0.5em; - } -} - /* Rules for edit pages */ .site-edit { -- 2.39.5