Skip to content

Commit b7dff9e

Browse files
committed
fix: pro badge in user config is inline with displayName
1 parent d9b0fef commit b7dff9e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

ts/components/dialog/user-settings/components.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const StyledProfileName = styled(Flex)`
9191
}
9292
`;
9393

94-
const StyledName = styled.p`
94+
const StyledName = styled.div`
9595
font-size: var(--font-size-xl);
9696
line-height: 1.4;
9797
font-weight: 700;
@@ -116,14 +116,15 @@ export const ProfileName = (props: { profileName: string; onClick: () => void })
116116
<StyledProfileName $container={true} $justifyContent="center" $alignItems="center">
117117
<StyledName data-testid="your-profile-name" onClick={onClick}>
118118
{profileName}
119+
{showPro.show ? (
120+
<ProIconButton
121+
iconSize={'medium'}
122+
dataTestId="pro-badge-profile-name"
123+
onClick={showPro.cb}
124+
style={{ display: 'inline-flex', marginInlineStart: 'var(--margins-sm)' }}
125+
/>
126+
) : null}
119127
</StyledName>
120-
{showPro.show ? (
121-
<ProIconButton
122-
iconSize={'medium'}
123-
dataTestId="pro-badge-profile-name"
124-
onClick={showPro.cb}
125-
/>
126-
) : null}
127128
</StyledProfileName>
128129
);
129130
};

0 commit comments

Comments
 (0)