mirror of
https://github.com/penpot/penpot.git
synced 2026-08-13 00:08:39 +00:00
The comments layer lives in the viewport overlays, which are absolutely positioned above the canvas, and the container itself carries a high z-index. A comment bubble panned into the ruler bars therefore painted on top of them, covering the ticks and numbers. Clip the comments container to the area outside the ruler bars while the rulers are visible, the same thing the `clip-handlers` clip path already does so the selection handlers stay off the rulers. Clipping only the comments container leaves the text editing overlay, which shares the viewport overlays, untouched. Fixes #11163. Signed-off-by: Filip Sajdak <filip.sajdak@siili.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>