mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
Fix janky hoverhandling for text messages
Add a 1px border to get more hover enter events...
This commit is contained in:
parent
1142fe2663
commit
e1c96569c1
2 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue