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 { .preview-container {
flex: 3; /* flex: 3;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 2rem; padding: 2rem;
background-color: var(--color-card); background-color: var(--color-card); */
color: var(--color-text); color: var(--color-text);
overflow: hidden; /* overflow: hidden;
position: relative; position: relative;
contain: layout style paint; /* CSS containment */ contain: layout style paint; */
} }
.preview-container img { .preview-container img {

View File

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