fix: icon alignments

This commit is contained in:
EnixCoda 2019-12-02 19:46:24 +08:00
parent 2127afba4b
commit 982ad39ef3
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
2 changed files with 2 additions and 2 deletions

View file

@ -133,7 +133,7 @@ export function Icon({ type, className = undefined, placeholder, ...otherProps }
{React.createElement(Octicon, {
icon: IconComponent,
className: mergedClassName,
verticalAlign: 'middle',
verticalAlign: 'text-bottom',
})}
</div>
)

View file

@ -362,7 +362,7 @@
width: 16px;
height: 16px;
object-fit: contain;
vertical-align: middle;
vertical-align: text-bottom;
padding-left: 4px;
box-sizing: content-box;