Refactor CardFull and InlineSvg components for improved layout and SVG handling

This commit is contained in:
sHa
2025-09-01 01:37:09 +03:00
parent fe07f166cf
commit 4dd4317d66
2 changed files with 5 additions and 5 deletions

View File

@@ -315,16 +315,16 @@
}
.preview-container {
flex: 3;
/* flex: 3;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
background-color: var(--color-card);
background-color: var(--color-card); */
color: var(--color-text);
overflow: hidden;
/* overflow: hidden;
position: relative;
contain: layout style paint; /* CSS containment */
contain: layout style paint; */
}
.preview-container img {

View File

@@ -228,7 +228,7 @@
.svg-wrapper :global(svg) {
width: 100%;
height: auto;
height: 100%;
object-fit: contain;
display: block;
transform-origin: center;