mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 05:07:06 +08:00
fix(core): avatars are not aligned (#5404)
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import { styled } from '@affine/component';
|
|
||||||
import { Button } from '@affine/component/ui/button';
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import type { ChangeEvent, PropsWithChildren } from 'react';
|
import type { ChangeEvent, PropsWithChildren } from 'react';
|
||||||
@@ -42,7 +41,7 @@ export const Upload = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<UploadStyle onClick={_chooseFile}>
|
<div style={{ display: 'flex' }} onClick={_chooseFile}>
|
||||||
{children ?? <Button>{t['Upload']()}</Button>}
|
{children ?? <Button>{t['Upload']()}</Button>}
|
||||||
<input
|
<input
|
||||||
ref={input_ref}
|
ref={input_ref}
|
||||||
@@ -52,12 +51,6 @@ export const Upload = ({
|
|||||||
accept={accept}
|
accept={accept}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
</UploadStyle>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const UploadStyle = styled('div')(() => {
|
|
||||||
return {
|
|
||||||
display: 'inline-block',
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user