fix(images): Wrap text in image message

Fixes: #10044
This commit is contained in:
Boris Melnik 2023-03-31 12:55:04 +03:00
parent 0424715810
commit 3566d64f39
1 changed files with 5 additions and 0 deletions

View File

@ -275,15 +275,20 @@ Control {
Loader { Loader {
active: root.messageDetails.contentType === StatusMessage.ContentType.Image && !editMode active: root.messageDetails.contentType === StatusMessage.ContentType.Image && !editMode
visible: active visible: active
Layout.fillWidth: true
sourceComponent: Column { sourceComponent: Column {
id: imagesColumn id: imagesColumn
spacing: 8 spacing: 8
Loader { Loader {
active: root.messageDetails.messageText !== "" active: root.messageDetails.messageText !== ""
anchors.left: parent.left
anchors.right: parent.right
visible: active visible: active
sourceComponent: StatusTextMessage { sourceComponent: StatusTextMessage {
messageDetails: root.messageDetails messageDetails: root.messageDetails
allowShowMore: !root.isInPinnedPopup
textField.anchors.rightMargin: root.isInPinnedPopup ? /*Style.current.xlPadding*/ 32 : 0 // margin for the "Unpin" floating button
onLinkActivated: { onLinkActivated: {
root.linkActivated(link); root.linkActivated(link);
} }