fix: handling of images fixed

This commit is contained in:
2026-02-10 22:59:05 +01:00
parent 6bbf13dd41
commit 77e117ae06
6 changed files with 61 additions and 10 deletions

View File

@@ -337,6 +337,28 @@
color: var(--vscode-descriptionForeground);
}
.media-preview-image {
max-width: 100%;
max-height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.media-preview-image img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 4px;
}
.media-preview-image.has-error::after {
content: 'Image not found';
color: var(--vscode-descriptionForeground);
font-size: 14px;
}
.media-details {
width: 320px;
display: flex;