-
-
Notifications
You must be signed in to change notification settings - Fork 605
fix: Updated resizable file wrappers #1914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/mantine
@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
commit: |
packages/core/src/blocks/FileBlockContent/helpers/render/createResizableFileWithCaption.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only question on this is why rename it?
I ended up reverting most of the changes and only keeping the fix - felt like it wasn't worth restructuring and renaming everything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR updates the component/function for the resizable file wrapper. As well as some simplifying and renaming, the main change is adding an invisible element on resize. This fixes janky behaviour that can be seen in the PDF example, and other blocks using
embed
,iframe
, and other, similar elements. More information about what this does is commented in the code.