mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-29 05:54:55 +03:00
fix(core): avatars are not aligned (#5404)
This commit is contained in:
parent
cb4f6d30af
commit
62fbab4f78
@ -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',
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user