Skip to content

Scale highlight based on workspace zoom#5563

Merged
knolleary merged 2 commits intodevfrom
5545-reveal-node-styling-2
Mar 12, 2026
Merged

Scale highlight based on workspace zoom#5563
knolleary merged 2 commits intodevfrom
5545-reveal-node-styling-2

Conversation

@knolleary
Copy link
Copy Markdown
Member

Part of #5545

One piece of feedback on the reveal highlight styling was that if the workspace was zoomed out, so was the size of the highlight border - making it hard to see

This fixes it by roughly scaling the highlight border based on scale factor.

This is done via css, rather than precise calculation. No scaling is done if zooming in - only when zooming out. There are two predefined steps of zoom where the stroke size increases.

SCR-20260312-klxi SCR-20260312-kmbj SCR-20260312-kmdf

@knolleary knolleary merged commit aadc4b1 into dev Mar 12, 2026
5 checks passed
@knolleary knolleary deleted the 5545-reveal-node-styling-2 branch March 12, 2026 11:58
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.

1 participant