fix: editor PreviewPanel updates

This commit is contained in:
2026-06-14 17:58:48 +08:00
parent 94c55d3597
commit 51b71d07e7

View File

@@ -52,6 +52,8 @@ function togglePlay() {
border-left: 1px solid rgba(255,255,255,0.08);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.preview-header {
@@ -61,17 +63,24 @@ function togglePlay() {
border-bottom: 1px solid rgba(255,255,255,0.06);
text-transform: uppercase;
letter-spacing: 1px;
width: 100%;
flex-shrink: 0;
}
.preview-video {
padding: 12px;
display: flex;
flex-direction: column;
gap: 8px;
width: 100%;
max-width: 100%;
aspect-ratio: 16 / 9;
max-height: 100%;
}
.preview-video video {
width: 100%;
height: 100%;
object-fit: contain;
background: #000;
border-radius: 4px;
}