mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-31 10:00:46 +03:00
004d10bfee
In the future we should probably add a gradient when clipped...
9 lines
346 B
QML
9 lines
346 B
QML
import ".."
|
|
|
|
MatrixText {
|
|
property string formatted: model.data.formattedBody
|
|
text: "<style type=\"text/css\">a { color:"+colors.link+";}</style>" + formatted.replace("<pre>", "<pre style='white-space: pre-wrap'>")
|
|
width: parent ? parent.width : undefined
|
|
height: isReply ? Math.min(chat.height / 8, implicitHeight) : undefined
|
|
clip: true
|
|
}
|