Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: hide progress on image if 0

Abdullah Atta094a65e5147a
diff --git a/packages/editor/src/extensions/image/component.tsx b/packages/editor/src/extensions/image/component.tsx
index 793ee510b..566a91bea 100644
--- a/packages/editor/src/extensions/image/component.tsx
+++ b/packages/editor/src/extensions/image/component.tsx
@@ -156,7 +156,7 @@ export function ImageComponent(
</Flex>
)}
</DesktopOnly>
- {progress && (
+ {progress ? (
<Flex
sx={{
position: "absolute",
@@ -169,9 +169,9 @@ export function ImageComponent(
}}
>
<Icon path={Icons.loading} rotate size={14} sx={{ mr: 1 }} />
- <Text variant="body">Loading ({progress}%)</Text>
+ <Text variant="body">{progress}%</Text>
</Flex>
- )}
+ ) : null}
{!isReadonly && selected && (
<Icon
className="drag-handle"