diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-27 20:33:17 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-27 20:33:17 +0800 |
| commit | 9f8b0c319412a75f703d98e9a36cc91e8d7ccdda (patch) | |
| tree | 4586bd8c3342398caf56019709bd773940f035ea /layouts | |
| parent | b2151271868f9b57c930269562bc02884be3cb34 (diff) | |
use max-width, max-height for image-size-control
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/shortcodes/image-size-control.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/shortcodes/image-size-control.html b/layouts/shortcodes/image-size-control.html index 310f436..170322f 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") }}width: {{ . }};{{ end -}} -{{- with (.Get "height") }}height: {{ . }};{{ end -}} +{{- with (.Get "width") }}max-width: {{ . }};{{ end -}} +{{- with (.Get "height") }}max-height: {{ . }};{{ end -}} "> {{ .Inner | markdownify }} </div> |
