Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): avatars are not aligned (#5404)

JimmFly62fbab4f7811
diff --git a/packages/frontend/core/src/components/pure/file-upload/index.tsx b/packages/frontend/core/src/components/pure/file-upload/index.tsx
index 8d09b530a5..c0b25d8aa0 100644
--- a/packages/frontend/core/src/components/pure/file-upload/index.tsx
+++ b/packages/frontend/core/src/components/pure/file-upload/index.tsx
@@ -1,4 +1,3 @@
-import { styled } from '@affine/component';
import { Button } from '@affine/component/ui/button';
import { useAFFiNEI18N } from '@affine/i18n/hooks';
import type { ChangeEvent, PropsWithChildren } from 'react';
@@ -42,7 +41,7 @@ export const Upload = ({
}
return (
- <UploadStyle onClick={_chooseFile}>
+ <div style={{ display: 'flex' }} onClick={_chooseFile}>
{children ?? <Button>{t['Upload']()}</Button>}
<input
ref={input_ref}
@@ -52,12 +51,6 @@ export const Upload = ({
accept={accept}
{...props}
/>
- </UploadStyle>
+ </div>
);
};
-
-const UploadStyle = styled('div')(() => {
- return {
- display: 'inline-block',
- };
-});