feat: add line break for posts

This commit is contained in:
Yanislav Igonin 2021-11-20 22:57:14 +02:00
parent 21f804cafb
commit a6daededbf
3 changed files with 5 additions and 4 deletions

View File

@ -16,5 +16,6 @@
width: 100%; width: 100%;
} }
.data-container { .line-break {
white-space: pre-line;
} }

View File

@ -45,8 +45,8 @@
</div> </div>
{{ end }} {{ end }}
<div class="data-container p-2"> <div class="p-2">
<p class="card-text">{{$Post.Text}}</p> <p class="card-text line-break">{{$Post.Text}}</p>
</div> </div>
</div> </div>