<p dir="auto">Richtext preview div has its width set to the edit textarea, but why?</p>
<p dir="auto">Make the browser window wide enough and start editing some text:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/145fc9af-4876-4755-aed7-0be648e936c5">image.png (view on web)</a></p>
<p dir="auto">Click <em>Preview</em> and start shrinking the window. You may get something like this because the preview wouldn't shrink:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/99726539-da65-4c5a-af4b-1ae02477d08d">image.png (view on web)</a></p>
<hr>
<p dir="auto">Preview and Help won't overlap if the width setting code is removed:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/be2f4b20-83ed-4677-9bde-b45d5905ccfb">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/4886'>https://github.com/openstreetmap/openstreetmap-website/pull/4886</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4886/commits/6048e588ac14bfccc9b21dbea3e1cf5a6e02007e" class="commit-link">6048e58</a> Don't set width of richtext preview</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4886/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4886/files#diff-0d7657292b610e8871d2d00d8468108ac06888d1033743b7e645dc87e9bfec71">app/assets/javascripts/richtext.js</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4886.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4886.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4886.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4886.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/4886">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMHX5R4RX33MFKPT4TZGHE7VAVCNFSM6AAAAABI63IRT2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DANRYG42DOMI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLQEP7Y4PBTJE3XVZ3ZGHE7VA5CNFSM6AAAAABI63IRT2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIXBAON4.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/4886</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/4886",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4886",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>