<p></p>
<p dir="auto">By the way, Leaflet also has a param to set the max width of the scale:</p>
<p dir="auto">In app/assets/javascripts/index.js:</p>
<div class="highlight highlight-source-js" dir="auto"><pre class="notranslate">  <span class="pl-c">// L.control.scale()</span>
  <span class="pl-c">//   .addTo(map);</span>

  <span class="pl-v">L</span><span class="pl-kos">.</span><span class="pl-c1">control</span><span class="pl-kos">.</span><span class="pl-en">scale</span> <span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">maxWidth</span>:<span class="pl-c1">400</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addTo</span> <span class="pl-kos">(</span><span class="pl-s1">map</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>

<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/issues/5114#issuecomment-2308448505">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPBFBXAZSL6XLRHZ7LZTCYM7AVCNFSM6AAAAABNBNKG6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYGQ2DQNJQGU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOA3MCBCPQ76CFVPNDZTCYM7A5CNFSM6AAAAABNBNKG6KWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUJTAQPS.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/issues/5114/2308448505</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/issues/5114#issuecomment-2308448505",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5114#issuecomment-2308448505",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>