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="
|
<div class="image-size-control" style="
|
||||||
{{- with (.Get "width") }}width: {{ . }};{{ end -}}
|
{{- with (.Get "width") }}max-width: {{ . }};{{ end -}}
|
||||||
{{- with (.Get "height") }}height: {{ . }};{{ end -}}
|
{{- with (.Get "height") }}max-height: {{ . }};{{ end -}}
|
||||||
">
|
">
|
||||||
{{ .Inner | markdownify }}
|
{{ .Inner | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue