fix(@chat): image don t overlap placeholder

* fix overlap
* remove placeholder text
This commit is contained in:
Anthony Laibe 2022-05-17 10:25:59 +02:00 committed by Iuri Matias
parent 92b9ef891d
commit 6830a02248
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ proc sendImages*(chatId: string, images: var seq[string]): RpcResponse[JsonNode]
"imagePath": image,
# TODO is this still needed
# "ensName": preferredUsername,
"text": "Update to latest version to see a nice image here!"
"text": ""
}
)
callPrivateRPC("sendChatMessages".prefix, %* [imagesJson])

View File

@ -522,7 +522,7 @@ Item {
Loader {
id: chatImageContent
active: isImage
anchors.top: parent.top
anchors.top: chatText.visible ? chatText.bottom : parent.top
anchors.topMargin: active ? 6 : 0
z: 51
sourceComponent: Component {