- Ya
- 14 Agosti 2026, 05:40 UTC
- Mwandishi
- kamo
- Ahadi ya
- f0d5f2a
Each note in the list (and the editor) gets a detach control that pops it onto a screen-wide overlay. Any number can float at once; each can be dragged anywhere, resized from any edge or corner down to a 220x170 floor, rolled up to its title bar, recoloured, and edited in place. Placement, size, stacking and colour persist in the per-member DB-backed ui-preferences store under a `floatingNotes` key -- the same mechanism the nav layout uses. That store, not sessionStorage, is the point: stickies have to survive signing out and back in, and logout clears sessionStorage wholesale. Notes: - Sticky text is always near-black, so every selectable background is held above a 7:1 contrast ratio against it by a unit test. The palette cannot drift illegible later. - Inline editing is offered only for notes whose stored Lexical state carries no formatting; anything richer opens read-only rather than being flattened by a plain-text round trip. - note.color was previously a hex dropped into a className slot, where it rendered nothing at all. It is now a palette id resolved to an inline background, and a coloured card pins its text dark so dark mode cannot paint white on pastel. - The overlay is portalled to <body>; the shell's content box is overflow:auto and would otherwise clip it.