summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/image-size-control.html
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-08-11 01:18:18 +0800
committerReorx <novoreorx@gmail.com>2022-08-11 01:18:18 +0800
commitd88771adeee6a1d8d30b27cd5d2e4d0c3810cbf9 (patch)
treed12fb1e1bc2ab4c5365673beb17d4f0b9af2dc89 /layouts/shortcodes/image-size-control.html
parent61452c190b57ed2c1246723e7fd1575ac4bf5a23 (diff)
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
Diffstat (limited to 'layouts/shortcodes/image-size-control.html')
-rw-r--r--layouts/shortcodes/image-size-control.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/image-size-control.html b/layouts/shortcodes/image-size-control.html
index 1bf374d..679aae7 100644
--- a/layouts/shortcodes/image-size-control.html
+++ b/layouts/shortcodes/image-size-control.html
@@ -1,6 +1,6 @@
<div class="image-size-control" style="
{{- with (.Get "width") }}max-width: {{ . }};{{ end -}}
-{{- with (.Get "height") }}max-height: {{ . }};{{ end -}}
+{{- with (.Get "height") }}height: {{ . }};{{ end -}}
">
{{ .Page.RenderString .Inner }}
</div>