1

Amélioration de l'apparence de l'image de couverture en mode portrait

This commit is contained in:
2026-04-06 22:46:44 +02:00
parent 341d1d30f8
commit b34c6acc42
3 changed files with 8 additions and 7 deletions

View File

@@ -56,6 +56,8 @@
.article-header .article-cover {
margin-top: 0;
display: flex;
justify-content: flex-end;
}
.article-header .article-cover > a {
@@ -63,8 +65,9 @@
}
.article-header .article-cover img {
width: 100%;
width: auto;
height: auto;
max-height: 90vh;
}
.article-header .article-meta {

View File

@@ -106,14 +106,10 @@
{{- if $coverImage -}}
{{- $coverDisplay = $coverImage -}}
{{- if ne $coverDisplay.MediaType.SubType "svg" -}}
{{- $coverWidth := $coverDisplay.Width -}}
{{- if gt $coverDisplay.Width 1480 -}}
{{- $coverWidth = 1480 -}}
{{- end -}}
{{- $coverDisplay = partial "media/process-image.html" (dict
"image" $coverImage
"action" "Resize"
"spec" (printf "%dx" $coverWidth)
"action" "Fit"
"spec" "1480x900"
) -}}
{{- end -}}
{{- end -}}