mirror of https://github.com/aredn/aredn.git
Fix scrolling when touching map on status page (#1777)
This commit is contained in:
parent
69b9bf8e09
commit
8f292117aa
|
@ -42,7 +42,7 @@
|
|||
%}
|
||||
<div class="ctrl" hx-get="status/e/location" hx-target="#ctrl-modal">
|
||||
{% if (mapurl) { %}
|
||||
<div class="location-image"><iframe loading="lazy" src="{{mapurl}}"></iframe></div>
|
||||
<div class="location-image"><iframe loading="lazy" src="{{mapurl}}"></iframe><div class="overlay"></div></div>
|
||||
<script>
|
||||
(function(){
|
||||
fetch("{{mapurl}}").catch(_ => document.querySelector(".location-image").style.display = "none");
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
overflow-x: hidden;
|
||||
overflow-y: scroll;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-width: thin;
|
||||
padding: 0 10px;
|
||||
}
|
||||
#ctrl-modal .dialog > div:last-child
|
||||
|
|
|
@ -382,16 +382,25 @@ body.authenticated .ctrl:hover
|
|||
}
|
||||
#location .location-image
|
||||
{
|
||||
pointer-events: none;
|
||||
position: relative;
|
||||
width: 300px;
|
||||
height: 150px;
|
||||
margin: 0 0 15px 10px;
|
||||
}
|
||||
#location .location-image iframe
|
||||
{
|
||||
position: absolute;
|
||||
border: 1px solid var(--hr-color);
|
||||
filter: var(--map-filter);
|
||||
}
|
||||
#location .location-image .overlay
|
||||
{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
/* -- end location layout -- */
|
||||
|
||||
|
|
Loading…
Reference in New Issue