PaperModX/layouts/shortcodes/image-size-control.html
Reorx d88771adee use height instead of max-height to control img size on parent div
this change happens on both image-size-control and figure-img-size
2022-08-11 01:18:18 +08:00

7 lines
194 B
HTML

<div class="image-size-control" style="
{{- with (.Get "width") }}max-width: {{ . }};{{ end -}}
{{- with (.Get "height") }}height: {{ . }};{{ end -}}
">
{{ .Page.RenderString .Inner }}
</div>