💄(frontend) change ui upload loader to fit the mockup

We updated the UI of the upload loader to match the new mockup.
This commit is contained in:
Anthony LC
2026-10-16 11:23:35 +02:00
parent 6d5d47e6dc
commit e76dc941bd
2 changed files with 18 additions and 5 deletions
+1
View File
@@ -13,6 +13,7 @@ and this project adheres to
### Changed
- ♻️(frontend) replace outdated AGPL mentions of BlockNote XL packages #2775
- 💄(frontend) update upload loader and error ui #2778
## [v6.0.1] - 2026-10-15
@@ -9,7 +9,7 @@ import { createReactBlockSpec } from '@blocknote/react';
import { t } from 'i18next';
import { useEffect } from 'react';
import { Box, Icon, Text } from '@/components';
import { Card, Icon, Text } from '@/components';
import { useMediaUrl } from '@/core';
import { isSafeUrl } from '@/utils/url';
@@ -135,18 +135,30 @@ const UploadLoaderBlockComponent = ({
}, [block, editor, mediaUrl, isEditable]);
return (
<Box className="bn-visual-media-wrapper" $direction="row" $gap="0.5rem">
<Card
className="bn-visual-media-wrapper"
$direction="row"
$gap="xs"
$withThemeBG
$border="none"
$theme="neutral"
$scope="semantic"
$width="100%"
$padding="xs"
>
{block.props.type === 'warning' ? (
<Warning />
) : (
<Icon
$theme="brand"
$theme="neutral"
$layer="border"
icon={<Loader style={{ animation: 'spin 1.5s linear infinite' }} />}
/>
)}
<Text>{block.props.information}</Text>
</Box>
<Text $variation="tertiary" $weight={500}>
{block.props.information}
</Text>
</Card>
);
};