fix: fix image padding

This commit is contained in:
Jonathan Rainville 2020-09-30 14:16:16 -04:00 committed by Iuri Matias
parent c37ba24f7b
commit 7478415c64
1 changed files with 12 additions and 16 deletions

View File

@ -60,19 +60,17 @@ Item {
Loader { Loader {
id: chatImageContent id: chatImageContent
active: isImage active: isImage
sourceComponent: chatImageComponent anchors.left: chatText.left
anchors.left: chatImage.right
anchors.leftMargin: 8 anchors.leftMargin: 8
anchors.top: chatReply.bottom anchors.top: chatReply.bottom
}
Component { sourceComponent: Component {
id: chatImageComponent
ChatImage { ChatImage {
imageSource: image imageSource: image
imageWidth: 200 imageWidth: 200
} }
} }
}
Loader { Loader {
id: stickerLoader id: stickerLoader
@ -132,19 +130,17 @@ Item {
Loader { Loader {
id: imageLoader id: imageLoader
active: showImages active: showImages
sourceComponent: imageComponent anchors.left: chatText.left
anchors.left: chatImage.right
anchors.leftMargin: 8 anchors.leftMargin: 8
anchors.top: chatText.bottom anchors.top: chatText.bottom
}
Component { sourceComponent: Component {
id: imageComponent
ImageMessage { ImageMessage {
color: Style.current.transparent color: Style.current.transparent
chatHorizontalPadding: 0 chatHorizontalPadding: 0
} }
} }
}
Loader { Loader {
id: audioPlayerLoader id: audioPlayerLoader