mirror of
https://github.com/suitenumerique/docs.git
synced 2026-10-14 12:15:27 +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:
@@ -84,6 +84,7 @@ and this project adheres to
|
||||
- 🔧(helm) run a valkey for the backend and one for yhub in dev and feature
|
||||
- ✨(frontend) turn pasted doc links into interlinks #2713
|
||||
- 💄(frontend) redesign 401 error standalone page #2716
|
||||
- 💄(frontend) update upload loader and error ui #2778
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
+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