mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 14:13:21 +00:00
fix wrap of long words
This commit is contained in:
parent
d8b616b4bd
commit
32fa6bf3f2
@ -46,4 +46,10 @@ img, video {
|
||||
|
||||
.pb-safe-area {
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
.preformatted-wrap {
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
@ -324,8 +324,8 @@ const Note = ({
|
||||
{(replyingToUsers?.length && !isQuoting && renderReplyingTo()) || null}
|
||||
{standalone && renderHelmet()}
|
||||
{meta.torrentId && <Torrent torrentId={meta.torrentId} autopause={!standalone} />}
|
||||
{text?.length > 0 && ( // TODO: remove whitespace-pre-wrap, replace \n with <br />
|
||||
<div className={`whitespace-pre-wrap break-words py-2 ${emojiOnly && 'text-2xl'}`}>
|
||||
{text?.length > 0 && (
|
||||
<div className={`preformatted-wrap py-2 ${emojiOnly && 'text-2xl'}`}>
|
||||
{text}
|
||||
{translatedText && (
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user