kopia lustrzana https://github.com/wagtail/wagtail
Fixes invalid focal_point for hiding the marker if no focal point is applicable
rodzic
270ac669a8
commit
4ab57ddd1f
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
border: 3px solid $color-teal;
|
||||
opacity: 0.7;
|
||||
|
||||
.hidden {
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 />
|
||||
|
|
Ładowanie…
Reference in New Issue