use max-width, max-height for image-size-control

This commit is contained in:
Reorx 2022-05-27 20:33:17 +08:00
parent b215127186
commit 9f8b0c3194
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<div class="image-size-control" style="
{{- with (.Get "width") }}width: {{ . }};{{ end -}}
{{- with (.Get "height") }}height: {{ . }};{{ end -}}
{{- with (.Get "width") }}max-width: {{ . }};{{ end -}}
{{- with (.Get "height") }}max-height: {{ . }};{{ end -}}
">
{{ .Inner | markdownify }}
</div>