refactor: Remove redundant max-width and max-height properties from preview zoom elements.

This commit is contained in:
2025-12-02 15:16:39 +01:00
parent c0093edc09
commit e1dd1990d7
@@ -23,8 +23,6 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
max-width: 99vw;
max-height: 99vh;
z-index: 3000000; z-index: 3000000;
--preview-padding: 1.5vmin; --preview-padding: 1.5vmin;
} }
@@ -32,13 +30,9 @@
.preview-zoom__stage--pdf { .preview-zoom__stage--pdf {
width: 100%; width: 100%;
height: 100%; height: 100%;
max-width: 99vw;
max-height: 99vh;
} }
.preview-zoom__image { .preview-zoom__image {
max-width: 99vw;
max-height: 99vh;
width: auto; width: auto;
height: auto; height: auto;
box-shadow: 0 32px 120px var(--shadow-deep); box-shadow: 0 32px 120px var(--shadow-deep);
@@ -48,15 +42,11 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
max-width: 99vw;
max-height: 99vh;
} }
.preview-zoom__scroll--pdf { .preview-zoom__scroll--pdf {
width: 100%; width: 100%;
height: 100%; height: 100%;
max-width: 99vw;
max-height: 99vh;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
overflow: auto; overflow: auto;