fix(StatusMessage): stickers were not aligned correctly
This commit is contained in:
parent
78f4560a54
commit
1793844cdb
|
@ -20,7 +20,8 @@ Control {
|
|||
Sticker = 4,
|
||||
Audio = 5,
|
||||
Transaction = 6,
|
||||
Invitation = 7
|
||||
Invitation = 7,
|
||||
DiscordMessage = 8
|
||||
}
|
||||
|
||||
property list<Item> quickActions
|
||||
|
@ -184,7 +185,6 @@ Control {
|
|||
id: messageLayout
|
||||
anchors.fill: parent
|
||||
spacing: 2
|
||||
|
||||
Loader {
|
||||
Layout.fillWidth: true
|
||||
active: isAReply
|
||||
|
@ -253,7 +253,10 @@ Control {
|
|||
}
|
||||
Loader {
|
||||
Layout.fillWidth: true
|
||||
active: !root.editMode && !!root.messageDetails.messageText && !root.hideMessage
|
||||
active: (!root.editMode && !!root.messageDetails.messageText && !root.hideMessage
|
||||
&& ((root.messageDetails.contentType === StatusMessage.ContentType.Text)
|
||||
|| (root.messageDetails.contentType === StatusMessage.ContentType.Emoji) ||
|
||||
(root.messageDetails.contentType === StatusMessage.ContentType.DiscordMessage)))
|
||||
visible: active
|
||||
sourceComponent: StatusTextMessage {
|
||||
objectName: "StatusMessage_textMessage"
|
||||
|
|
|
@ -363,6 +363,8 @@ Loader {
|
|||
StatusMessage {
|
||||
id: delegate
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: 2
|
||||
Layout.bottomMargin: 2
|
||||
|
||||
function convertContentType(value) {
|
||||
switch (value) {
|
||||
|
@ -380,6 +382,8 @@ Loader {
|
|||
return StatusMessage.ContentType.Audio;
|
||||
case Constants.messageContentType.communityInviteType:
|
||||
return StatusMessage.ContentType.Invitation;
|
||||
case Constants.messageContentType.discordMessageType:
|
||||
return StatusMessage.ContentType.DiscordMessage;
|
||||
case Constants.messageContentType.fetchMoreMessagesButton:
|
||||
case Constants.messageContentType.chatIdentifier:
|
||||
case Constants.messageContentType.unknownContentType:
|
||||
|
|
Loading…
Reference in New Issue