Tags: logseq/logseq
Tags
fix(editor): await cut before clearing block selection clear-selection! ran synchronously while cut-selection-blocks was still pending, so the selection was empty by the time the async pipeline reached get-original-block. That function maps an embed's rendered row back to its placeholder by reading live selection state, so it always saw nothing and fell through to the embed target. Verified against node embeds over six shapes (block with content, block with children, empty block, empty page, page with blocks, embed-of-embed): right-click + Delete, right-click + Cmd-X, and the context menu's "Delete selected blocks" item now remove the placeholder and leave the target intact. The context menu's "Cut" item is NOT fixed by this. Refs logseq/logseq#13096 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Improve CMD+K page preview spacing, highlight, and nested blocks
- Add horizontal breathing room: page title px-4 -> px-6 and block list
left/right padding 0.5rem -> 1rem so content isn't cramped against the
preview window edges.
- Widen the bullet -> text gap (gap-1 -> gap-2) and trim the block list's
left padding by the same amount so block text stays aligned with the
page title.
- Draw the matched-block highlight as a ::before background layer that
extends ~8px beyond the block on each side, so the bullet no longer sits
flush against the box edge. Using a pseudo-element keeps the block's box
model untouched, preserving title<->block alignment at every depth.
- Load the previewed page's full descendant tree
({:children? true :include-collapsed-children? true}) instead of one
level, so nested child blocks (e.g. notes under a tagged block) render
in the preview rather than only top-level blocks.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
pre-HSX-merge snapshot of feat/unified-icon-picker (188 ahead / 94 be… …hind master) before merging origin/master (HSX + React 19)
PreviousNext