Fix zoom in bibliography images (#3057)
Fixes #2668 Signed-off-by: George Araújo <george.gcac@gmail.com>
This commit is contained in:
parent
74beacb274
commit
d53297f256
@ -14,6 +14,7 @@
|
|||||||
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
|
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
|
||||||
-->
|
-->
|
||||||
{% if site.imagemagick.enabled %}
|
{% if site.imagemagick.enabled %}
|
||||||
|
{% unless include.avoid_scaling %}
|
||||||
<source
|
<source
|
||||||
class="responsive-img-srcset"
|
class="responsive-img-srcset"
|
||||||
{% if ext == 'gif' or ext == 'jpeg' or ext == 'jpg' or ext == 'png' or ext == 'tiff' %}
|
{% if ext == 'gif' or ext == 'jpeg' or ext == 'jpg' or ext == 'png' or ext == 'tiff' %}
|
||||||
@ -28,6 +29,7 @@
|
|||||||
sizes="95vw"
|
sizes="95vw"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>
|
>
|
||||||
|
{% endunless %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<img
|
<img
|
||||||
src="{% if include.url %}{{ include.url }}{% elsif include.cache_bust %}{{ include.path | relative_url | bust_file_cache }}{% else %}{{ include.path | relative_url }}{% endif %}"
|
src="{% if include.url %}{{ include.url }}{% elsif include.cache_bust %}{{ include.path | relative_url | bust_file_cache }}{% else %}{{ include.path | relative_url }}{% endif %}"
|
||||||
|
|||||||
@ -37,6 +37,7 @@
|
|||||||
sizes = "200px"
|
sizes = "200px"
|
||||||
class="preview z-depth-1 rounded"
|
class="preview z-depth-1 rounded"
|
||||||
zoomable=true
|
zoomable=true
|
||||||
|
avoid_scaling=true
|
||||||
alt=entry.preview
|
alt=entry.preview
|
||||||
%}
|
%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user