Skip to content

Commit

Permalink
fix data stats panel in bottom-right corner of the map
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Oct 18, 2023
1 parent fd67689 commit d8791f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,8 @@ body .ui-tooltip {
}

#data_stats {
z-index: 5;
display: block;
position: absolute;
bottom: 0;
right: 0;
width: auto;
text-align: right;
margin: 0;
padding: 0.1em 0.7em;
font-size: 12px;
line-height: 1.5;
Expand Down
6 changes: 3 additions & 3 deletions js/ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1031,9 +1031,9 @@ class IDE {
)}: ${stats.geojson.lines}, ${i18n.t(
"data_stats.polygons"
)}:&nbsp;${stats.geojson.polys}</small>`;
$(`<div id="data_stats" class="stats">${stats_txt}</div>`).insertAfter(
"#map"
);
$(
`<div id="data_stats" class="stats leaflet-control">${stats_txt}</div>`
).insertAfter("#map .leaflet-control-attribution");
// show more stats as a tooltip
const backlogOverpass =
overpass.timestamp && Date.now() - Date.parse(overpass.timestamp);
Expand Down

0 comments on commit d8791f9

Please sign in to comment.