Skip to content

Commit

Permalink
Use is-... classes for preview
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 4, 2025
1 parent 218f696 commit 426b384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/handlebars/feed.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{{> partials/weather in=.}}
</div>

<a class="images is-preview" href="{{route this}}">
<a class="images is-preview is-{{size-class (size images)}}" href="{{route this}}">
{{#with images.0}}
<div class="{{#if is.video}}is-video{{/if}} image">
<img alt="{{title}}, {{date meta.dateTime format='d.m.Y H:i'}}" {{#unless first}}loading="lazy"{{/unless}} {{&dataset meta}} src="/image/{{slug}}/thumb-{{name}}.webp" width="1024">
Expand Down
2 changes: 1 addition & 1 deletion src/main/handlebars/layout.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@
grid-template-columns: 1fr;
}
&.is-single video {
&.is-single, &.is-preview .image img, video {
aspect-ratio: auto;
}
Expand Down

0 comments on commit 426b384

Please sign in to comment.