0
0
Fork 0

Fix focal point cropping in MediaGallery, fix focal point modal (#6740)

* Use object-position with object-fit instead of JS top/left

* Fix focal point modal
This commit is contained in:
Eugen Rochko 2018-03-11 15:12:33 +01:00 committed by GitHub
parent 56333cca88
commit 56eb5c3f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 62 deletions

View file

@ -4315,18 +4315,16 @@ a.status-card {
display: block;
text-decoration: none;
color: $ui-secondary-color;
height: 100%;
line-height: 0;
&,
img {
height: 100%;
width: 100%;
}
img {
position: relative;
object-fit: cover;
height: auto;
}
}
@ -5076,6 +5074,12 @@ noscript {
}
}
.focal-point-modal {
max-width: 80vw;
max-height: 80vh;
position: relative;
}
.focal-point {
position: relative;
cursor: pointer;
@ -5085,6 +5089,14 @@ noscript {
cursor: move;
}
img {
max-width: 80vw;
max-height: 80vh;
width: auto;
height: auto;
margin: auto;
}
&__reticle {
position: absolute;
width: 100px;