mirror of
https://github.com/zhigang1992/react.git
synced 2026-03-27 22:54:38 +08:00
fix(tag): fix height clutter caused by box-sizing of parent element
This commit is contained in:
@@ -93,6 +93,7 @@ const Tag: React.FC<React.PropsWithChildren<TagProps>> = React.memo(({
|
||||
background-color: ${bgColor};
|
||||
color: ${color};
|
||||
padding: 6px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
`}</style>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user