<p>This uses <a rel="nofollow" href="https://getbootstrap.com/docs/4.4/utilities/text/#word-break">https://getbootstrap.com/docs/4.4/utilities/text/#word-break</a> to break long URLs on the blog post show view.</p>
<p>Example case: <a rel="nofollow" href="https://www.openstreetmap.org/user/tordans/diary/395215">https://www.openstreetmap.org/user/tordans/diary/395215</a></p>
<p>Screenshot before:</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/111561/103171702-a0f51f80-484e-11eb-9e27-0612ebb2fe66.jpg"><img src="https://user-images.githubusercontent.com/111561/103171702-a0f51f80-484e-11eb-9e27-0612ebb2fe66.jpg" alt="Bildschirmfoto 2020-12-27 um 14 16 15 Kopie" style="max-width:100%;"></a></p>
<p>Screenshot after:</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/111561/103171716-be29ee00-484e-11eb-91c7-180c3260fb5c.jpg"><img src="https://user-images.githubusercontent.com/111561/103171716-be29ee00-484e-11eb-91c7-180c3260fb5c.jpg" alt="Bildschirmfoto 2020-12-27 um 14 20 40 Kopie" style="max-width:100%;"></a></p>
<p>An alternativ solution would be this custom CSS:</p>
<pre><code>.diary_post .richtext {
    margin-top: $lineheight;
    // Prevent long URLs from breaking out of the container
    // https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;  
  }
</code></pre>

<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/3018'>https://github.com/openstreetmap/openstreetmap-website/pull/3018</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Break long URLs in blog post show</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3018/files#diff-762b8d267ae09ef1d6b118dcafbca62b31bca7120be6764bc39a304d64af61d8">app/views/redactions/show.html.erb</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3018.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3018.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3018.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3018.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3018">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJOVPBMPS53HPBYAD3SW4YG7ANCNFSM4VKZ54NA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLIR7363VI3AHRJOTYLSW4YG7A5CNFSM4VKZ54NKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LRSEHHQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3018",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3018",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>