Skip to content

Commit

Permalink
fix: Image deformity in chrome v121
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud committed Jan 26, 2024
1 parent e36e740 commit ea33108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/plugin/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
loading="{{ $loading }}"
src="{{ $src | safeURL }}"
srcset="{{ $small | safeURL }}, {{ $src | safeURL }} 1.5x, {{ $large | safeURL }} 2x"
sizes="auto"
{{/* sizes="auto" https://github.com/HEIGE-PCloud/DoIt/issues/1165 */}}
alt="{{ $alt }}"{{ with $height }} height="{{ . }}" {{ end }}{{ with $width }} width="{{ . }}" {{ end }}>
</a>
{{- else -}}
Expand All @@ -51,7 +51,7 @@
loading="{{ $loading }}"
src="{{ $src | safeURL }}"
srcset="{{ $small | safeURL }}, {{ $src | safeURL }} 1.5x, {{ $large | safeURL }} 2x"
sizes="auto"
{{/* sizes="auto" https://github.com/HEIGE-PCloud/DoIt/issues/1165 */}}
alt="{{ $alt }}"
title="{{ .Title | default $alt }}"{{ with $height }} height="{{ . }}" {{ end }} {{ with $width }} width="{{ . }}" {{ end }}>
{{- end -}}

1 comment on commit ea33108

@vercel
Copy link

@vercel vercel bot commented on ea33108 Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.