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;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Stage: fills center column above filmstrip + transport */
|
||||
.viewer-frame {
|
||||
position: relative;
|
||||
display: grid;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
min-height: 360px;
|
||||
place-items: center;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
background: #0a0a0c;
|
||||
background: #0b0b0d;
|
||||
}
|
||||
|
||||
.viewer-frame img,
|
||||
.viewer-frame video {
|
||||
/* Grow until width or height hits the stage; letterbox/pillarbox via contain */
|
||||
.viewer-frame > img,
|
||||
.viewer-frame > video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
}
|
||||
|
||||
.eye-viewer {
|
||||
|
||||
Reference in New Issue
Block a user