Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Drag ghost issues when moving blocks

未关闭
#2,609 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
react, typescript
领域
frontend

调研方向

Start by reproducing the drag behavior with image, table, and multiline text blocks in a Chromium-based browser on macOS. Inspect the existing block drag-ghost entry point and verify that the preview preserves dimensions, borders, line breaks, repeat draggability, and reduced opacity across all listed cases.

由索引模型根据 Issue 内容生成。

描述

bug:P3 sponsor
What’s broken?

The drag ghost (the visual preview shown while dragging a block) has several rendering and behavior issues:

Image

  • Image block drag ghost is oversized. The drag ghost renders at a much larger size than the original block.
  • Image block becomes undraggable after first drag. Once an image block has been dragged and dropped once, it can no longer be dragged again.
    Image
  • Table block drag ghost lacks grid lines. The grid/borders are not visible in the drag ghost.
    Image
  • Text block drag ghost does not preserve line breaks while dragging. The drag ghost collapses multi-line text onto a single line.
  • No opacity reduction on drag ghost. Dragged elements render at full opacity, making it hard to distinguish the ghost from the actual page content.
What did you expect to happen?
  • The drag ghost should match the original block's dimensions and styling (size, borders, line breaks).
  • Image blocks should remain draggable after being moved.
  • The drag ghost should have reduced opacity so users can clearly tell it apart from the underlying content. For reference, Notion applies opacity and preserves table grids in its drag previews.
Steps to reproduce
  • Open a document containing image, table, and multi-line text blocks.
  • Drag an image block. Observe the oversized ghost.
  • Drop the image, then try to drag it again. Observe it is no longer draggable.
  • Drag a table block. Observe the missing grid lines.
  • Drag a multi-line text block. Observe collapsed line breaks.
  • During any drag, note the lack of opacity difference between the ghost and the page content.
BlockNote version

No response

Environment

macOS 26.4 (25E246)

Additional context

Observed on macOS with Chromium-based browsers (Chrome, Arc, Dia).

Contribution
  • I'd be interested in contributing a fix for this issue
Sponsor
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖
主要语言
TypeScript
星标
10.2k
派生
772
平均合并
6 天 3 小时
30 天内合并 PR
26

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TypeCellOS/BlockNote 的其他 Issue

查看 TypeCellOS/BlockNote 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。