fix: word wrap for multiline posts

This commit is contained in:
Yanislav Igonin 2021-11-21 09:14:09 +02:00
parent 0c0969ddcb
commit 86bd536f42
2 changed files with 5 additions and 1 deletions

View File

@ -19,3 +19,7 @@
.line-break { .line-break {
white-space: pre-line; white-space: pre-line;
} }
.word-wrap {
word-break: break-word;
}

View File

@ -46,7 +46,7 @@
{{ end }} {{ end }}
<div class="p-2"> <div class="p-2">
<p class="card-text line-break">{{$Post.Text}}</p> <p class="card-text line-break word-wrap">{{$Post.Text}}</p>
</div> </div>
</div> </div>