Skip to content

Comments

give the content a drawable hover area to improve hover trigger#41

Merged
viktorstrate merged 1 commit intoviktorstrate:mainfrom
sloatescoan:30-improve-hover
Feb 17, 2026
Merged

give the content a drawable hover area to improve hover trigger#41
viktorstrate merged 1 commit intoviktorstrate:mainfrom
sloatescoan:30-improve-hover

Conversation

@scoates
Copy link
Contributor

@scoates scoates commented Feb 16, 2026

SwiftUI doesn't seem to trigger a hover event if there's nothing drawn, so "draw" a rectangle as the background.

closes #30

@viktorstrate
Copy link
Owner

Looks great, I didn't know about the contentShape modifier, exactly what we need in this case.

@viktorstrate viktorstrate merged commit 7d8ac15 into viktorstrate:main Feb 17, 2026
2 checks passed
viktorstrate added a commit that referenced this pull request Feb 17, 2026
As it was causing a bug where the message actions would disappear
when attempting to move the cursor to the buttons.
@viktorstrate
Copy link
Owner

I've reverted this PR as it caused a bug where the message actions could no longer reached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

It's hard to use the message toolbar when the message is narrow

2 participants