fix(link): improve vertical alignment of link text

This commit is contained in:
unix
2020-03-23 11:04:59 +08:00
parent 2058e36ec3
commit f748cc0157
2 changed files with 3 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ export const LinkIcon: React.FC<Props> = React.memo(({ color }) => {
<style jsx>{`
.icon {
margin: 0 5px;
display: inline-flex;
align-self: center;
}
`}</style>
</svg>

View File

@@ -38,6 +38,7 @@ const Link: React.FC<React.PropsWithChildren<LinkProps>> = React.memo(({
<style jsx>{`
.link {
display: inline-flex;
align-items: baseline;
line-height: inherit;
color: ${linkColor};
text-decoration: none;