refactor: Remove redundant max-width and max-height properties from preview zoom elements.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user