fix: fix image padding
This commit is contained in:
parent
c37ba24f7b
commit
7478415c64
|
@ -60,17 +60,15 @@ 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
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,17 +130,15 @@ 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
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue