fix(library): contain zoom in stage viewport and add drag/pan support for single view
This commit is contained in:
@@ -1240,9 +1240,7 @@ button.hint:disabled { cursor: default; }
|
||||
.lib-root .adm-col > .adm-filmstrip { flex: 0 0 auto; }
|
||||
.lib-root .adm-album-list { max-height: none; flex: 1 1 auto; min-height: 0; }
|
||||
.lib-root .adm-stage { min-height: 0; overflow: hidden; }
|
||||
/* The frame fills the stage and the stage fits the window: `object-fit` letterboxes
|
||||
it inside that box, so a 3:2 or a 4:3 frame stays whole and never pushes the
|
||||
strip off screen. */
|
||||
.lib-root .adm-stage-viewport { flex: 1 1 auto; min-height: 0; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
|
||||
.lib-root .adm-stage-img { flex: 1 1 auto; min-height: 0; width: 100%; aspect-ratio: auto; object-fit: contain; }
|
||||
.lib-root .adm-stage > .lib-noimg { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
|
||||
.lib-root .adm-stage > .adm-meta,
|
||||
|
||||
Reference in New Issue
Block a user