Amélioration de l'apparence de l'image de couverture en mode portrait
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user