<p dir="auto">This PR addresses "auth_button_prefered alignment" issue mentioned in the <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2286023536" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4773" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4773/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4773">#4773</a></p>
<p dir="auto">In app/views/application/_auth_providers_html.erb, updated div's styles, updated layout (parent div + 2 (or 1) child div area) and simplified code (replaced multiple nested if-statements with one-line-for-all). Here are the screenshots before and after the changes:</p>
<p dir="auto">Before:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/25298521/56a18921-7967-481c-9206-d2db6a026c93">image.png (view on web)</a><br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/25298521/323e6e48-a808-4648-844f-b77432618b76">image.png (view on web)</a></p>
<p dir="auto">After:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/25298521/7ba61fbd-175c-42e1-9177-49483c6659f2">image.png (view on web)</a><br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/25298521/27a0a71f-0341-4c84-8664-c37d03befa7c">image.png (view on web)</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/4849'>https://github.com/openstreetmap/openstreetmap-website/pull/4849</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4849/commits/95ca8292a39466f3f02e4350db9d1ec1b3637ef6" class="commit-link">95ca829</a> Fixed "auth_button_preferred alignment" issue described in #4773</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4849/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4849/files#diff-5a9b0e7aa9d3862ba8103db51b8b44b6e392cb43f22bba850bf95e0be7b53e4f">app/views/application/_auth_providers.html.erb</a>
(41)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4849.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4849.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4849.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4849.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/4849">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMM7ZYMHHFJIYMFNPTZERHTLAVCNFSM6AAAAABIMSH4PKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZDANRSGMZTIMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLN34CLNEIABGX7PMADZERHTLA5CNFSM6AAAAABIMSH4PKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIUUPG5Y.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/4849</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/4849",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4849",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>