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