summary refs log tree commit diff
path: root/resources/qml/delegates/TextMessage.qml
blob: bef4f76d05dfcd775e37342983132d77c4e3ae65 (plain) (blame)
1
2
3
4
5
6
7
8
9
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
}