mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-03 02:06:19 +00:00
fix(Chat): Quoted message in a reply is not clickable
wrap the reply contents area (excluding the profile header) in a ColumnLayout and move the MouseArea that handles the `messageClicked()` signal there, thus avoiding the collisions between the two Fixes #10950
This commit is contained in:
parent
8d7ff095dd
commit
0cf01871b4
@ -62,15 +62,6 @@ Item {
|
|||||||
implicitHeight: messageLayout.implicitHeight
|
implicitHeight: messageLayout.implicitHeight
|
||||||
implicitWidth: messageLayout.implicitWidth
|
implicitWidth: messageLayout.implicitWidth
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
hoverEnabled: true
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
onClicked: {
|
|
||||||
root.messageClicked(mouse)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: messageLayout
|
id: messageLayout
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@ -113,6 +104,15 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
implicitWidth: messageContentsLayout.implicitWidth
|
||||||
|
implicitHeight: messageContentsLayout.implicitHeight
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: messageContentsLayout
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
@ -155,6 +155,7 @@ Item {
|
|||||||
asset.name: replyDetails.messageContent
|
asset.name: replyDetails.messageContent
|
||||||
asset.isImage: true
|
asset.isImage: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 22
|
Layout.preferredHeight: 22
|
||||||
@ -170,6 +171,17 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
onClicked: {
|
||||||
|
root.messageClicked(mouse)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user