From: Anton Khorev Date: Wed, 17 Apr 2024 01:09:04 +0000 (+0300) Subject: Use Bootstrap actionable items in query results X-Git-Tag: live~568^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0bd034a8e95749a84d19b39ed1c9a461f803988b?ds=inline;hp=--cc Use Bootstrap actionable items in query results --- 0bd034a8e95749a84d19b39ed1c9a461f803988b diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index 59c3a8b49..313bd1cc0 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -216,7 +216,7 @@ OSM.Query = function (map) { if (interestingFeature(element)) { var $li = $("
  • ") - .addClass("query-result list-group-item") + .addClass("query-result list-group-item list-group-item-action") .data("geometry", featureGeometry(element)) .text(featurePrefix(element) + " ") .appendTo($ul); @@ -230,14 +230,14 @@ OSM.Query = function (map) { if (results.remark) { $("
  • ") - .addClass("query-result list-group-item") + .addClass("query-result list-group-item list-group-item-action") .text(I18n.t("javascripts.query.error", { server: url, error: results.remark })) .appendTo($ul); } if ($ul.find("li").length === 0) { $("
  • ") - .addClass("query-result list-group-item") + .addClass("query-result list-group-item list-group-item-action") .text(I18n.t("javascripts.query.nothing_found")) .appendTo($ul); } @@ -246,7 +246,7 @@ OSM.Query = function (map) { $section.find(".loader").hide(); $("
  • ") - .addClass("query-result list-group-item") + .addClass("query-result list-group-item list-group-item-action") .text(I18n.t("javascripts.query." + status, { server: url, error: error })) .appendTo($ul); } diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index cf616983e..d3399420b 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -640,10 +640,6 @@ tr.turn { &.query-result { cursor: pointer; } - - &.selected { - background: $list-highlight; - } } } }