mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 22:18:54 +08:00
fix(editor): should update image size field (#12274)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Image content now includes file size information in its metadata. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -101,6 +101,7 @@ export class ImageAdapter extends BaseAdapter<Image> {
|
|||||||
flavour: 'affine:image',
|
flavour: 'affine:image',
|
||||||
id: nanoid(),
|
id: nanoid(),
|
||||||
props: {
|
props: {
|
||||||
|
size: item.size,
|
||||||
sourceId: blobId,
|
sourceId: blobId,
|
||||||
},
|
},
|
||||||
children: [],
|
children: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user