fix: remove the background caused by the line-height of img

This commit is contained in:
unix
2020-04-08 08:27:52 +08:00
parent 6dc8a0da9a
commit b00f89279f
2 changed files with 5 additions and 0 deletions

View File

@@ -48,6 +48,10 @@ const Display: React.FC<React.PropsWithChildren<DisplayProps>> = React.memo(({
margin: 0;
transition: min-width ease .2s;
}
.content :global(img) {
display: block;
}
.caption {
font-size: .875rem;

View File

@@ -76,6 +76,7 @@ const Image: React.FC<ImageProps> = React.memo(({
width: ${scale};
height: ${scale};
object-fit: scale-down;
display: block;
}
`}</style>
</div>