Fix svg overflow (#4719)

* fix svg overflow

* fix max height on svg

* Fix padding in card preview

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
Nitwel
2021-04-08 22:49:41 +02:00
committed by GitHub
parent 9c621c6e20
commit ea7ab2b28d
2 changed files with 6 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ export default defineComponent({
}
.svg {
position: absolute;
width: 50%;
height: 50%;
object-fit: contain;

View File

@@ -139,5 +139,10 @@ audio {
padding: 64px;
background-color: var(--background-normal);
border-radius: var(--border-radius);
&.max-size img {
// Max height - padding * 2
max-height: calc(75vh - 128px);
}
}
</style>