import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../../Base" import "../utils.js" as ChatJS HRowLayout { id: eventContent spacing: standardSpacing / 2 layoutDirection: isOwn ? Qt.RightToLeft : Qt.LeftToRight HAvatar { id: avatar name: displayName hidden: combine dimension: 28 } HLabel { id: contentLabel text: "" + (displayName.value || dict.sender) + " " + ChatJS.getEventText(type, dict) + "  " + "" + Qt.formatDateTime(dateTime, "hh:mm:ss") + " " + "" textFormat: Text.RichText background: Rectangle {color: HStyle.chat.event.background} wrapMode: Text.Wrap leftPadding: horizontalPadding rightPadding: horizontalPadding topPadding: verticalPadding bottomPadding: verticalPadding Layout.maximumWidth: Math.min( 600, roomEventListView.width - avatar.width - eventContent.totalSpacing ) } }