<p dir="auto">This PR updates the map-ui panels (share, key and layers panels, typically shown on the right hand side). It brings the margins and paddings into alignment with the main panel (i.e. using bootstrap <code class="notranslate">$spacer</code>, <code class="notranslate">p-3</code> or <code class="notranslate">m-3</code> sized gap) rather than the previously different sized margins and paddings.</p>
<p dir="auto">It also updates the share panel to use bootstrap controls, most noticeably for the image section. I tried many ways of laying out the controls to work at all screen widths, but this was the best that I came up with - pretty much as before!</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/360803/266071210-02cd91e6-48ed-45ff-9d92-4658c67b202f.png"><img src="https://user-images.githubusercontent.com/360803/266071210-02cd91e6-48ed-45ff-9d92-4658c67b202f.png" alt="Screenshot from 2023-09-06 16-54-37" style="max-width: 100%;"></a></p>
<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/4233'>https://github.com/openstreetmap/openstreetmap-website/pull/4233</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/commits/b5d3fce05a1647b92ed3c011ab58f758ad51d3d6" class="commit-link">b5d3fce</a> Use bootstrap for share forms</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/commits/398849a9ff62912df1448c4571e26ab121739e95" class="commit-link">398849a</a> Use bootstrap form controls for the link and html controls</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/commits/bc756e45af28a634b0555fd19e2f7a711c1f91dd" class="commit-link">bc756e4</a> Make the sharing controls read-only</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/commits/da49f2cfce1b3a5d485d48f308d1a7e7f4eb7653" class="commit-link">da49f2c</a> Round the clickable map previews on the layer switcher</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/commits/24f06276fdaa21ecad3d52188de49d4a7419ebc2" class="commit-link">24f0627</a> Use standard padding size for map-ui sidebar</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/commits/e212e7993d7892571b00c8a59b16b5eda1c7cb52" class="commit-link">e212e79</a> Use h2 as the main header on the map-ui panel</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/commits/64de2270a639bd87a6329324f49b572cca239fc1" class="commit-link">64de227</a> Match the top spacing of the leaflet buttons to the gap between groups</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/files">5 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/files#diff-87e33ea7d5e625dd851a78a3192719681de20caea8edd278a10f5342585c98e7">app/assets/javascripts/leaflet.layers.js</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/files#diff-e15f8139afbbcbe98b89298674e7980a4a4500dbc54a431e1325a11adfe83f83">app/assets/javascripts/leaflet.share.js</a>
(105)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/files#diff-c4925852e0efd740fa9486b55efb267e4d1f1984fcdcd3125c5d1784b7a0f7a1">app/assets/javascripts/leaflet.sidebar-pane.js</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
(30)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4233/files#diff-1ed86bfa2aa7755d8f1f78574beceeb01b246a86beed16f43eb4d286f35667a9">app/views/site/key.html.erb</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4233.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4233.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4233.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4233.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/4233">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKV3ZDFS6SLCZIEIJDXZCNUJANCNFSM6AAAAAA4NSNVP4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPCLEQJQHXG3H5V6NTXZCNUJA5CNFSM6AAAAAA4NSNVP6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHAUE3GI.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/4233</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/4233",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4233",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>