Skip to content

Commit

Permalink
fix: Fix type description tooltip spacing in Firefox (#1724)
Browse files Browse the repository at this point in the history
Closes #1723
  • Loading branch information
mitsuruog committed Dec 4, 2020
1 parent e163b39 commit 512091d
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -10,8 +10,12 @@ export const styles = ({ space }: Rsg.Theme) => ({
alignItems: 'center',
display: 'inline-flex',
},
name: {
flexShrink: 0,
},
icon: {
marginLeft: space[0],
flexShrink: 0,
},
});

Expand All @@ -24,7 +28,9 @@ function ComplexTypeRenderer({ classes, name, raw }: ComplexTypeProps) {
return (
<Tooltip placement="right" content={raw}>
<span className={classes.complexType}>
<Text>{name}</Text>
<span className={classes.name}>
<Text>{name}</Text>
</span>
<MdInfoOutline className={classes.icon} />
</span>
</Tooltip>
Expand Down

0 comments on commit 512091d

Please sign in to comment.