Fixes invalid focal_point for hiding the marker if no focal point is applicable

pull/3508/head
Janneke Janssen 2017-03-26 13:22:34 +02:00
rodzic 270ac669a8
commit 4ab57ddd1f
4 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -25,6 +25,7 @@ Changelog
* Page chooser widgets now display the required page type where relevant (Christine Ho)
* Site root pages are now indicated with a globe icon in the explorer listing (Nick Smith, Huub Bouma)
* Draft page view is now restricted to users with edit / publish permission over the page (Kees Hink)
* Added the option to delete a previously saved focal point on a image (Maarten Kling)
* Fix: Marked 'Date from' / 'Date to' strings in wagtailforms for translation (Vorlif)
* Fix: "File" field label on image edit form is now translated (Stein Strindhaug)
* Fix: Unreliable preview is now reliable by always opening in a new window (Kjartan Sverrisson)

Wyświetl plik

@ -32,6 +32,7 @@ Other features
* Page chooser widgets now display the required page type where relevant (Christine Ho)
* Site root pages are now indicated with a globe icon in the explorer listing (Nick Smith, Huub Bouma)
* Draft page view is now restricted to users with edit / publish permission over the page (Kees Hink)
* Added the option to delete a previously saved focal point on a image (Maarten Kling)
Bug fixes

Wyświetl plik

@ -11,7 +11,7 @@
border: 3px solid $color-teal;
opacity: 0.7;
.hidden {
&.hidden {
display: none;
}
}

Wyświetl plik

@ -72,7 +72,7 @@
<img {{ rendition.attrs }} data-original-width="{{ image.width }}" data-original-height="{{ image.height }}" class="show-transparency">
<div class="current-focal-point-indicator{% if not image.focal_point %} hidden{% endif %}"></div>
<div class="current-focal-point-indicator{% if not image.has_focal_point %} hidden{% endif %}"></div>
</div>
<br />