Drag ghost issues when moving blocks
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- react, typescript
- Bereich
- frontend
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What’s broken?
The drag ghost (the visual preview shown while dragging a block) has several rendering and behavior issues:
- 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.
- Table block drag ghost lacks grid lines. The grid/borders are not visible in the drag ghost.
- 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 💖
- Vorherrschende Sprache
- TypeScript
- Sterne
- 10.2k
- Forks
- 772
- Ø Merge
- 6 T. 21 Std.
- Gemergte PRs (30 T.)
- 26
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TypeCellOS/BlockNote
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TypeCellOS/BlockNote#2949 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
a11y
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
TypeCellOS/BlockNote#2855 ·
Maintainer antworten meist innerhalb von 1 Tag
-
a11y
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
TypeCellOS/BlockNote#2829 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
a11y
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
TypeCellOS/BlockNote#2824 ·
Maintainer antworten meist innerhalb von 1 Tag
-
a11y
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
TypeCellOS/BlockNote#2811 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TypeCellOS/BlockNote
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
opengovsg/FormSG#10118 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
ai-driven-qa bug claude
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
linagora/twake-calendar-frontend#1434 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
check:passed streams:add
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
iptv-org/iptv#52824 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 78/100
jaegertracing/jaeger-ui#4512 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:ide documentation enhancement platform:macos platform:vscode
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
anthropics/claude-code#97389 ·
Maintainer antworten meist innerhalb von 1 Tag