- Ya
- 14 Agosti 2026, 20:37 UTC
- Mwandishi
- kamo
- Ahadi ya
- 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.