💄(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-06 16:20:51 +02:00
parent 6e5dee38e9
commit f93ea20ae0
2 changed files with 18 additions and 5 deletions
+1
View File
@@ -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
@@ -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>
);
};