Skip to content

Commit

Permalink
Revert "fix(StatusMessage): stickers were not aligned correctly"
Browse files Browse the repository at this point in the history
This reverts commit 0fb954b.
  • Loading branch information
alexandraB99 authored and jrainville committed Jan 27, 2023
1 parent 7744d20 commit 8bb9da6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/app_service/service/stickers/service.nim
Original file line number Diff line number Diff line change
Expand Up @@ -399,4 +399,4 @@ QtObject:
let network = self.networkService.getNetworkForStickers()

let balances = status_go_backend.getTokensBalancesForChainIDs(@[network.chainId], @[account], @[token.addressAsString()]).result
return ens_utils.hex2Token(balances{account}{token.addressAsString()}.getStr, token.decimals)
return ens_utils.hex2Token(balances{account}{token.addressAsString()}.getStr, token.decimals)
12 changes: 4 additions & 8 deletions ui/StatusQ/src/StatusQ/Components/StatusMessage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,10 @@ Control {

contentItem: Item {

implicitWidth: parent.width
implicitWidth: messageLayout.implicitWidth
implicitHeight: messageLayout.implicitHeight


SequentialAnimation {
id: messageFoundAnimation

Expand Down Expand Up @@ -181,8 +182,7 @@ Control {

ColumnLayout {
id: messageLayout
width: parent.width
height: childrenRect.height
anchors.fill: parent
spacing: 2

Loader {
Expand All @@ -202,7 +202,6 @@ Control {
Layout.fillWidth: true
Layout.leftMargin: 16
Layout.rightMargin: 16
Layout.preferredHeight: childrenRect.height
spacing: 8

StatusSmartIdenticon {
Expand All @@ -227,7 +226,6 @@ Control {
spacing: 2
Layout.alignment: Qt.AlignTop
Layout.fillWidth: true
Layout.preferredHeight: childrenRect.height
Layout.leftMargin: profileImage.visible ? 0 : root.messageDetails.sender.profileImage.assetSettings.width + parent.spacing

StatusPinMessageDetails {
Expand Down Expand Up @@ -255,9 +253,7 @@ Control {
}
Loader {
Layout.fillWidth: true
active: (!root.editMode && !!root.messageDetails.messageText && !root.hideMessage
&& ((root.messageDetails.contentType === StatusMessage.ContentType.Text)
|| (root.messageDetails.contentType === StatusMessage.ContentType.Emoji)))
active: !root.editMode && !!root.messageDetails.messageText && !root.hideMessage
visible: active
sourceComponent: StatusTextMessage {
objectName: "StatusMessage_textMessage"
Expand Down
2 changes: 0 additions & 2 deletions ui/imports/shared/views/chat/MessageView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,6 @@ Loader {
StatusMessage {
id: delegate
Layout.fillWidth: true
Layout.topMargin: 2
Layout.bottomMargin: 2

function convertContentType(value) {
switch (value) {
Expand Down

0 comments on commit 8bb9da6

Please sign in to comment.