logseq / logseq/og

Blocks disappear when outdented past zoom root in focused view

Open
#24 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Clojure
Stars
297
Forks
52
PR merge metrics
No merged PRs in 30d

Description

## Bug Description

When in focused view (zoom mode), pressing Shift+Tab to outdent a block that is a direct child of the zoom root causes the block to disappear.

## Steps to Reproduce

1. Open a page with nested blocks, e.g.:
- Block A
- Block B
- Block C
2. Click to zoom/focus into Block B
3. Select Block C
4. Press Shift+Tab to outdent

https://github.com/user-attachments/assets/6478a8f8-647a-4ee7-990c-c598133b534d

## Expected Behavior

Block C should not be outdented, since it's already at the top level under the zoom root. The outdent operation should be blocked.

## Actual Behavior

Block C disappears — it gets outdented past the zoom root, breaking the page structure.

## Related

Same fix as https://github.com/logseq/logseq/pull/12583 in the DB version.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Reproduce the focused-view case with nested blocks, then inspect the outdent handling for a direct child of the zoom root and compare it with the fix in DB PR #12583. Done means Shift+Tab is blocked at the zoom root and the block remains visible and structurally intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.