fix(StatusTextMessage): Links not clickable in a long collapsed message

Setting `visible` or `enabled` to `false` stops mouse events from being
propagated -> hide the original message using `opacity` instead

Fixes links being unclickable when the gradient/mask is in effect

Closes #8116
This commit is contained in:
Lukáš Tinkl 2022-11-07 19:21:07 +01:00 committed by Lukáš Tinkl
parent 0cf2c9c8da
commit e687dad3c7

View File

@ -63,7 +63,7 @@ Item {
width: parent.width
height: effectiveHeight + d.showMoreHeight / 2
visible: !opMask.active
opacity: opMask.active ? 0 : 1
clip: true
text: d.text
selectedTextColor: Theme.palette.directColor1
@ -87,7 +87,7 @@ Item {
Loader {
id: mask
anchors.fill: chatText
active: showMoreLoader.active
active: showMoreLoader.active && !d.readMore
visible: false
sourceComponent: LinearGradient {
start: Qt.point(0, 0)