mirror of
https://github.com/directus/directus.git
synced 2026-01-22 21:58:04 -05:00
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:
@@ -179,6 +179,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
.svg {
|
||||
position: absolute;
|
||||
width: 50%;
|
||||
height: 50%;
|
||||
object-fit: contain;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user