mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
### TL;DR Refactor the insert below functionality to work with page mode and edgeless mode * Page Mode - Insert content below the current selection - If nothing selected, insert content below the last block * EdgeLess Mode - If no note block is currently selected, create the content as a new note block. - Otherwise, insert content into the selected note Close BS-2760 ### What changed? - Created separate insert handlers for page and edgeless modes with context-aware behavior - Added support for inserting content when nothing is selected by targeting the last content block - Added special handling for edgeless mode to support inserting below selected note blocks - Removed the "Replace selection" action and consolidated insert functionality - Optimized the clickable area of the action button