feat: Introduce MediaViewer component to centralize media rendering and refactor document preview and zoom overlay to use it, along with new CSS padding variables.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
max-width: 99vw;
|
||||
max-height: 99vh;
|
||||
z-index: 3000000;
|
||||
--preview-padding: 1.5vmin;
|
||||
}
|
||||
|
||||
.preview-zoom__stage--pdf {
|
||||
@@ -61,7 +62,7 @@
|
||||
overflow: auto;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
--pdf-viewer-stack-padding: 1vh;
|
||||
--pdf-viewer-stack-padding: var(--preview-padding);
|
||||
}
|
||||
|
||||
.preview-zoom__scroll:focus {
|
||||
@@ -102,4 +103,4 @@
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
border-radius: inherit;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user