Centre the sticky's watermark on the writing surface

Fixkamo-internal
Shipped
August 14, 2026 at 8:37 PM UTC
Author
kamo
Commit
f25fbce

It was centred on the whole note, so it sat high — pulled up behind the title bar — and in rich mode it drifted further every time the toolbar wrapped to a second or third row on a narrow sticky. It now centres on the text area itself, in both modes and at any size. The surface is measured rather than offset by a constant. Two reasons it has to be: the toolbar's height is not knowable ahead of time because it wraps with the note's width, and in rich mode the editable region is rendered by the Lexical plugin rather than by markup here, so there is nothing to wrap it in. A ResizeObserver tracks the note and the surface, and a MutationObserver catches the editable region mounting a tick after the provider does. In rich mode it pins to the editor's scroller rather than the editable element, so the mark holds still instead of riding the text as it scrolls.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing