feat: support enter to create workspace

This commit is contained in:
tzhangchi
2023-01-06 18:46:07 +08:00
parent 2b8b1c1f38
commit 8fa9669aa8
3 changed files with 16 additions and 1 deletions
@@ -20,7 +20,8 @@ export const WorkspaceAvatar = (props: IWorkspaceAvatar) => {
background: stringToColour(props.name || 'AFFiNE'),
borderRadius: '50%',
textAlign: 'center',
lineHeight: sizeStr,
// Let the text inside the avatar be absolutely in the play
lineHeight: size - 2 + '[x',
}}
>
{(props.name || 'AFFiNE').substring(0, 1)}