use max-width, max-height for image-size-control
This commit is contained in:
parent
b215127186
commit
9f8b0c3194
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue