Skip to content

Commit

Permalink
Improve cover image rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Sep 9, 2024
1 parent aa335b2 commit c763ea2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lessons/templates/lessons/chat_lesson.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ <h1 class="mb-4">{{ page.title }}</h1>
{% if page.cover_photo %}
<div class="mb-4 position-relative">
<div class="image-container">
{% image page.cover_photo width-1200 class="img-fluid rounded w-100" alt=_("Cover image for {{ page.title }}") %}
{% image page.cover_photo width-1200 as cover_image %}
<img src="{{ cover_image.url }}" class="img-fluid rounded w-100" alt="{% translate 'Cover image for' %} {{ page.title }}" width="{{ cover_image.width }}" height="{{ cover_image.height }}">
</div>
<div id="chat-bubble" class="chat-bubble">
<div id="chat-content"></div>
Expand Down

0 comments on commit c763ea2

Please sign in to comment.