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

This commit is contained in:
JimmFly 2023-12-26 20:23:28 +08:00 committed by GitHub
parent cb4f6d30af
commit 62fbab4f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',
};
});