Skip to content

Commit

Permalink
editor: hide progress on image if 0
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Jan 29, 2024
1 parent 372da97 commit 094a65e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/editor/src/extensions/image/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function ImageComponent(
</Flex>
)}
</DesktopOnly>
{progress && (
{progress ? (
<Flex
sx={{
position: "absolute",
Expand All @@ -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"
Expand Down

0 comments on commit 094a65e

Please sign in to comment.