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