Socket
Socket
Sign inDemoInstall

cf-react-icons

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cf-react-icons

svg icon


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
1.21 MB
Created
Weekly downloads
 

Readme

Source

因为svg的特殊性,如果是inline布局时,会影响父元素的高度,有几种解决方案

  • 父元素指定高度或者父元素是flex并垂直居中时,不受影响
  • 否则父元素高度会比正常高几px
  • 设置为inline-block并且加line-height为1,或者设置为inline-flex,都会一定程度减少高度

FAQs

Last updated on 07 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc