<p dir="auto">This PR fixes multiple issues about the map resetting its position when opening various menus on mobile devices.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2279625955" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4755" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4755/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4755">#4755</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="87805963" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/991" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/991/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/991">#991</a><br>
...</p>
<ol dir="auto">
<li>Get rid of the hardcoded left sidebar width.</li>
<li>On mobile devices, use adjust the height, not the width of the map</li>
</ol>
<h3 dir="auto">How has this been tested?</h3>
<markdown-accessiblity-table><table role="table">
<tbody><tr>
<th>
<p dir="auto">Before</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/9c283266-b43a-48d2-9f25-ffe73752c837">https://github.com/user-attachments/assets/9c283266-b43a-48d2-9f25-ffe73752c837</a></p>
</th></tr><tr>
<th>
<p dir="auto">After</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/9cf73154-c043-430a-a143-f8d47ad0f080">https://github.com/user-attachments/assets/9cf73154-c043-430a-a143-f8d47ad0f080</a></p>
</th><th>
<p dir="auto">After with RTL</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/ed973523-98d2-46a8-be2b-ca8619e1085f">https://github.com/user-attachments/assets/ed973523-98d2-46a8-be2b-ca8619e1085f</a></p>
</th></tr>
</tbody></table></markdown-accessiblity-table>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5521'>https://github.com/openstreetmap/openstreetmap-website/pull/5521</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5521/commits/e75db2ceae901b24385a676054b8510280200e2a" class="commit-link">e75db2c</a> Fix left/right sidebar resizing on mobile devices</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5521/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5521/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
(25)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5521/files#diff-47fdb48f632a18a6f55b9db0d4e0b134a4019bd2d0380436fc53e3a4ae0e2604">app/assets/javascripts/leaflet.sidebar.js</a>
(20)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5521.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5521.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5521.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5521.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5521">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOTIBXXB6H6QXEYXNL2LOF6FAVCNFSM6AAAAABVOTVL2CVHI2DSMVQWIX3LMV43ASLTON2WKOZSG44TONJYGEYTCNY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNWEOPWXBJVKUBP7YD2LOF6FA5CNFSM6AAAAABVOTVL2CWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKNP5THU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5521</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5521",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5521",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>