Scale viewer stills and clips to fill the stage with contain.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+14
-6
@@ -324,24 +324,32 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
min-width: 0;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Stage: fills center column above filmstrip + transport */
|
||||||
.viewer-frame {
|
.viewer-frame {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: grid;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 360px;
|
min-height: 0;
|
||||||
place-items: center;
|
min-width: 0;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: #0a0a0c;
|
background: #0b0b0d;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewer-frame img,
|
/* Grow until width or height hits the stage; letterbox/pillarbox via contain */
|
||||||
.viewer-frame video {
|
.viewer-frame > img,
|
||||||
|
.viewer-frame > video {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
object-position: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.eye-viewer {
|
.eye-viewer {
|
||||||
|
|||||||
@@ -171,7 +171,6 @@
|
|||||||
ref="viewerVideo"
|
ref="viewerVideo"
|
||||||
:key="selected.id"
|
:key="selected.id"
|
||||||
:src="`/api/library/clips/${selected.id}/video`"
|
:src="`/api/library/clips/${selected.id}/video`"
|
||||||
class="h-full w-full"
|
|
||||||
:muted="viewerMuted"
|
:muted="viewerMuted"
|
||||||
@timeupdate="onVideoTime"
|
@timeupdate="onVideoTime"
|
||||||
@loadedmetadata="onVideoTime"
|
@loadedmetadata="onVideoTime"
|
||||||
|
|||||||
Reference in New Issue
Block a user