Repository navigation
fix(react): restore file block styling - #3440
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/diagram-block
@blocknote/mantine
@blocknote/math-block
@blocknote/react
@blocknote/server-util
@blocknote/shadcn
@blocknote/xl-ai
@blocknote/xl-docx-exporter
@blocknote/xl-email-exporter
@blocknote/xl-multi-column
@blocknote/xl-odt-exporter
@blocknote/xl-pdf-exporter
@blocknote/xl-typst-exporter
commit: |
|
Summary
Fixes #3431.
ReactFileBlocknow declares the samefileBlockAccept: ["*/*"]metadata as the core file block. This restores thedata-file-blockmarker used by the existing styles to align the attachment icon and filename and lay out the “Add file” button. Stored block data is unchanged.Testing
vp run e2e:local File/block.browser.test.tsx. The tests also verify that clicking “Add file” opens the file panel.Related
#3379 uses the same metadata for toolbar indentation.
Summary by CodeRabbit