fix: set link icon opacity based on element opacity (#10693)

* Set global alpha for drawing elements

* Adjust opacity calculation for canvas rendering

* lint
This commit is contained in:
zsviczian
2026-01-24 12:16:48 +01:00
committed by GitHub
parent 6135548534
commit d5e37cda81
@@ -221,6 +221,7 @@ const renderLinkIcon = (
linkCanvasCacheContext.restore();
}
context.globalAlpha = element.opacity / 100;
context.drawImage(linkCanvas, x - centerX, y - centerY, width, height);
context.restore();
}