Overriding Thumbnail Dimensions #2476
-
|
Hi, I'm looking to override the dimensions of the thumbnails to be in a Letter size ratio with the cardView: true parameter on I found this mentioned in the docs:
How and where would I change the dimensions and would that also affect the article.heroStyle? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
I'm guessing you want to change the thumbnail size of article cards with Am I understanding you correctly? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @nicholas-alonzo, the CSS I shared earlier was not precise. A more accurate approach is to specifically the first div: - #main-content > article > div {
+ #main-content > article > div:nth-of-type(1) {
aspect-ratio: 1/1.4142;
margin-inline: auto;
width: unset;
height: 480px;
}This should fix the problem. |
Beta Was this translation helpful? Give feedback.






assets/css/events.csslayouts/partials/extend-head-uncached.html{{ if hasPrefix .Page.Path "/events" }} {{ with resources.Get "css/events.css" }} {{ $eventsCSS := . | resources.Minify | resources.Fingerprint (site.Params.fingerprintAlgorithm | default "sha512") }} <link rel="stylesheet" href="{{ $eventsCSS.RelPermalink }}" integrity="{{ $eventsCSS.Data.Integrity }}"> …