mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
fix: fix appearance container to not have hover state and better height
This commit is contained in:
parent
51a379efda
commit
e57fc2afb7
@ -22,6 +22,7 @@ Item {
|
|||||||
+ (dateGroupLbl.visible ? dateGroupLbl.height + dateGroupLbl.anchors.topMargin : 0)
|
+ (dateGroupLbl.visible ? dateGroupLbl.height + dateGroupLbl.anchors.topMargin : 0)
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
enabled: !placeholderMessage
|
||||||
anchors.fill: messageContainer
|
anchors.fill: messageContainer
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
onClicked: messageMouseArea.clicked(mouse)
|
onClicked: messageMouseArea.clicked(mouse)
|
||||||
@ -235,6 +236,7 @@ Item {
|
|||||||
|
|
||||||
// TODO find a way for this to not eat link hovers
|
// TODO find a way for this to not eat link hovers
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
enabled: !placeholderMessage
|
||||||
anchors.fill: root
|
anchors.fill: root
|
||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.NoButton
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
@ -3,6 +3,7 @@ import "../../../../../shared"
|
|||||||
import "../../../../../imports"
|
import "../../../../../imports"
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
enabled: !placeholderMessage
|
||||||
cursorShape: chatText.hoveredLink ? Qt.PointingHandCursor : undefined
|
cursorShape: chatText.hoveredLink ? Qt.PointingHandCursor : undefined
|
||||||
acceptedButtons: Qt.RightButton | Qt.LeftButton
|
acceptedButtons: Qt.RightButton | Qt.LeftButton
|
||||||
z: 50
|
z: 50
|
||||||
|
@ -67,12 +67,13 @@ ScrollView {
|
|||||||
anchors.leftMargin: -Style.current.padding
|
anchors.leftMargin: -Style.current.padding
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: -Style.current.padding
|
anchors.rightMargin: -Style.current.padding
|
||||||
height: 220
|
height: paceholderMessage.height + Style.current.padding*4
|
||||||
radius: Style.current.radius
|
radius: Style.current.radius
|
||||||
border.color: Style.current.border
|
border.color: Style.current.border
|
||||||
color: Style.current.transparent
|
color: Style.current.transparent
|
||||||
|
|
||||||
Message {
|
Message {
|
||||||
|
id: paceholderMessage
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: Style.current.padding*2
|
anchors.topMargin: Style.current.padding*2
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
Loading…
x
Reference in New Issue
Block a user