Fix janky hoverhandling for text messages

Add a 1px border to get more hover enter events...
This commit is contained in:
Nicolas Werner 2021-03-05 16:47:20 +01:00
parent 1142fe2663
commit e1c96569c1
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 4 additions and 1 deletions

View file

@ -54,6 +54,7 @@ ScrollView {
HoverHandler { HoverHandler {
id: messageActionHover id: messageActionHover
grabPermissions: PointerHandler.CanTakeOverFromAnything grabPermissions: PointerHandler.CanTakeOverFromAnything
} }
@ -301,7 +302,6 @@ ScrollView {
id: hoverHandler id: hoverHandler
enabled: !Settings.mobileMode enabled: !Settings.mobileMode
onHoveredChanged: { onHoveredChanged: {
if (hovered) { if (hovered) {
if (!messageActionHover.hovered) { if (!messageActionHover.hovered) {

View file

@ -35,6 +35,7 @@ Item {
RowLayout { RowLayout {
id: row id: row
anchors.rightMargin: 1
anchors.leftMargin: avatarSize + 16 anchors.leftMargin: avatarSize + 16
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
@ -43,6 +44,8 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignTop
spacing: 4 spacing: 4
Layout.topMargin: 1
Layout.bottomMargin: 1
// fancy reply, if this is a reply // fancy reply, if this is a reply
Reply { Reply {