mirror of
https://github.com/zhigang1992/react.git
synced 2026-03-27 15:05:33 +08:00
fix(link): improve vertical alignment of link text
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user