Run prettier after update

This commit is contained in:
Norbert Renner 2022-05-18 15:53:09 +02:00
parent 1f8fed4d6c
commit 89d9e8763a
3 changed files with 52 additions and 46 deletions

View file

@ -870,68 +870,72 @@ table.dataTable.display tbody tr:hover.selected {
border-radius: 0;
}
/**
* Autocompleter styles
*/
.leaflet-control-geocoder-form.stayvisible { display: inline-block; }
.leaflet-control-geocoder-alternatives{
/* display: block; */
position: absolute;
background-color: white;
left: 2rem;
.leaflet-control-geocoder-form.stayvisible {
display: inline-block;
}
.leaflet-control-geocoder-alternatives {
/* display: block; */
position: absolute;
background-color: white;
left: 2rem;
}
.leaflet-control-geocoder-alternatives{
background-color: rgb(255, 255, 255);
.leaflet-control-geocoder-alternatives {
background-color: rgb(255, 255, 255);
}
.autocomplete-container {
position:absolute;
left: 2rem;
width: calc( 100% - 3rem );
z-index: 100;
position: absolute;
left: 2rem;
width: calc(100% - 3rem);
z-index: 100;
}
.autocomplete-select-container {
max-height: 15vh;
overflow-y: auto;
max-height: 15vh;
overflow-y: auto;
}
.autocomplete-container .autocomplete-select button{
text-align: left;
padding-left: 1rem;
padding-right: 1rem;
width: 100%;
.autocomplete-container .autocomplete-select button {
text-align: left;
padding-left: 1rem;
padding-right: 1rem;
width: 100%;
}
#search-fav-menu-toggle {
text-align: right;
padding-right: 2rem;
line-height: 100%;
cursor: pointer;
text-align: right;
padding-right: 2rem;
line-height: 100%;
cursor: pointer;
}
#search-fav-menu-toggle > span {
font-weight: bold;
line-height: 0;
font-size: 1.2rem;
font-weight: bold;
line-height: 0;
font-size: 1.2rem;
}
.autocomplete-container.filtered .autocomplete-select button{ display: none; }
.autocomplete-container.filtered .autocomplete-select button.match{ display: inherit; }
.autocomplete-container.filtered .autocomplete-select button {
display: none;
}
.autocomplete-container.filtered .autocomplete-select button.match {
display: inherit;
}
@media (max-width: 320.98px) {
.leaflet-control-geocoder-form > input[type=text] {
max-width: 50vw;
}
.leaflet-control-geocoder-form > input[type='text'] {
max-width: 50vw;
}
.leaflet-control-geocoder-alternatives {
max-width: 65vw;
}
.leaflet-control-geocoder-alternatives {
max-width: 65vw;
}
}
@media (max-width: 575.98px) {
.modal-fullscreen-sm-down {
width: 100vw;

View file

@ -213,8 +213,7 @@ BR.LayersConfig = L.Class.extend({
minZoom: 12,
feature: {
title: '{{ tags.name }}',
body:
'<table class="overpass-tags">{% for k, v in tags %}{% if k[:5] != "addr:" %}<tr><th>{{ k }}</th><td>{% if k matches "/email/" %}<a href="mailto:{{ v }}">{{ v }}</a>{% elseif v matches "/^http/" %}<a href="{{ v }}">{{ v }}</a>{% elseif v matches "/^www/" %}<a href="http://{{ v }}">{{ v }}</a>{% else %}{{ v }}{% endif %}</td></tr>{% endif %}{% endfor %}</table>',
body: '<table class="overpass-tags">{% for k, v in tags %}{% if k[:5] != "addr:" %}<tr><th>{{ k }}</th><td>{% if k matches "/email/" %}<a href="mailto:{{ v }}">{{ v }}</a>{% elseif v matches "/^http/" %}<a href="{{ v }}">{{ v }}</a>{% elseif v matches "/^www/" %}<a href="http://{{ v }}">{{ v }}</a>{% else %}{{ v }}{% endif %}</td></tr>{% endif %}{% endfor %}</table>',
markerSymbol:
'<svg width="25px" height="41px" anchorX="12" anchorY="41" viewBox="0 0 32 52" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M16,1 C7.7146,1 1,7.65636364 1,15.8648485 C1,24.0760606 16,51 16,51 C16,51 31,24.0760606 31,15.8648485 C31,7.65636364 24.2815,1 16,1 L16,1 Z" fill="#436978"></path></svg>',
markerSign,

View file

@ -55,12 +55,15 @@ BR.NogoAreas = L.Control.extend({
e.layer.toggleEdit();
});
var editTools = (this.editTools = map.editTools = new BR.Editable(map, {
circleEditorClass: BR.DeletableCircleEditor,
// FeatureGroup instead of LayerGroup to propagate events to members
editLayer: new L.FeatureGroup().addTo(map),
featuresLayer: this.drawnItems,
}));
var editTools =
(this.editTools =
map.editTools =
new BR.Editable(map, {
circleEditorClass: BR.DeletableCircleEditor,
// FeatureGroup instead of LayerGroup to propagate events to members
editLayer: new L.FeatureGroup().addTo(map),
featuresLayer: this.drawnItems,
}));
this.startDrawing = function (control) {
// initial radius of 0 to detect click, see DeletableCircleEditor.onDrawingMouseUp