feat: Make software interaction more natural

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