also assign max width to image

This commit is contained in:
Ell 2024-05-21 16:15:02 +02:00
parent 88f08a6d04
commit 2e9ff2c94b
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@
{% else %}
{% assign url = post.url | append: post.image %}
{% endif %}
<img src="{{ url }}" alt="Cover image for post {{ post.title }}">
<img src="{{ url }}" class="devlog-image" width="90%" alt="Cover image for post {{ post.title }}">
{% endif %}
<h4 class="devlog-title">{{ post.title }}</h4>
<div class="text-muted">{{ post.date | date_to_string }}</div>

View file

@ -158,7 +158,7 @@ a:visited.wide-link {
margin-top: 20px;
}
.devlog img {
.devlog-image {
width: 90%;
max-height: 120px;
object-fit: cover;