mirror of
https://github.com/suitenumerique/docs.git
synced 2026-10-21 07:21:45 +02:00
💄(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:
@@ -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
|
||||
|
||||
|
||||
+17
-5
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user