tweak binding highlight width

This commit is contained in:
dwelle
2025-09-13 15:41:26 +02:00
parent b789308798
commit f6978ae162

View File

@@ -242,7 +242,10 @@ const renderBindingHighlightForBindableElement = (
element.y + appState.scrollY,
);
context.lineWidth = 2 * element.strokeWidth;
context.lineWidth = Math.max(
2 / appState.zoom.value,
element.strokeWidth * 0.5,
);
context.strokeStyle =
appState.theme === THEME.DARK ? "#035da1" : "#6abdfc";