fix: word breaking

This commit is contained in:
Artemy 2022-11-05 12:59:22 +03:00
parent 7b4718c8de
commit 90914ea9f0
3 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ function CreateNote() {
></textarea> ></textarea>
{preview && ( {preview && (
<div className="w-full md"> <div className="w-full md break-words">
<ReactMarkdown>{text}</ReactMarkdown> <ReactMarkdown>{text}</ReactMarkdown>
</div> </div>
)} )}

View file

@ -30,7 +30,7 @@ function Note() {
{printDate(note.time)} {printDate(note.time)}
</div> </div>
</div> </div>
<div className="w-full md"> <div className="w-full md break-words">
<ReactMarkdown>{note.text}</ReactMarkdown> <ReactMarkdown>{note.text}</ReactMarkdown>
</div> </div>
</div> </div>

View file

@ -54,7 +54,7 @@ function PubNote() {
{printDate(note?.time || Date.now())} {printDate(note?.time || Date.now())}
</div> </div>
</div> </div>
<div className="w-full md"> <div className="w-full md break-words">
<ReactMarkdown>{note?.text || "Загрузка..."}</ReactMarkdown> <ReactMarkdown>{note?.text || "Загрузка..."}</ReactMarkdown>
</div> </div>
</div> </div>