Skip to content

Commit 5800028

Browse files
fix(frontend): use explicit image dimensions
1 parent c071059 commit 5800028

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/frontend/components/heading/template.njk

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% set srcOnError = opts.photo.srcOnError or "/assets/not-found.svg" %}
33
<header class="{{ classes("heading", opts) }}">
44
{% if opts.photo %}
5-
<img class="heading__photo icon icon--rounded" src="{{ opts.photo.src }}" alt="{{ opts.photo.alt }}" onerror="this.src='{{ srcOnError }}'">
5+
<img class="heading__photo icon icon--rounded" src="{{ opts.photo.src }}" alt="{{ opts.photo.alt }}" onerror="this.src='{{ srcOnError }}'" height="80" width="80">
66
{% endif %}
77
<h1 class="heading__title">
88
{% if opts.parent.href %}

packages/frontend/components/widget/template.njk

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<header class="widget__header">
88
{% if opts.title %}
99
<h2 class="widget__title" id="{{ id }}">
10-
<img class="icon icon--rounded" src="{{ opts.image }}" alt="" onerror="this.src='/assets/plug-in.svg'">
10+
<img class="icon icon--rounded" src="{{ opts.image }}" alt="" onerror="this.src='/assets/plug-in.svg'" height="20" width="20">
1111
{{- opts.title | safe }}
1212
</h2>
1313
{% endif %}

0 commit comments

Comments
 (0)