Skip to content

Commit

Permalink
solve the image showing condittion (#1999)
Browse files Browse the repository at this point in the history
  • Loading branch information
JisanAR03 authored Mar 17, 2024
1 parent c51442a commit 432c127
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/templates/_bug.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@
<div class="bug-desc py-2 h-[100%] font-['Barlow'] font-medium text-[#774343] text-3xl leading-10 overflow-clip">
<a href="{% url 'issue_view2' slug=bug.id %}">{{ bug.description|truncatechars:100 }}</a>
</div>
<div class="bug-images h-[200px] flex flex-row justify-between px-3 my-2">
<div class="bug-images h-[160px] flex flex-row justify-between px-3 my-2">
{% for bug_key, bug_screenshots in bugs_screenshots.items %}
{% if bug == bug_key %}
{% for bug_screenshot in bug_screenshots %}
{% if bug_screenshots %}
<img class="bug-img h-[100%] w-[200px] object-contain"
src="{{ bug_screenshot.image.url }}"
src="{{ bug_screenshots.0.image.url }}"
alt="bug screenshot"
width="200px"
height="100%">
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
</div>
Expand Down

0 comments on commit 432c127

Please sign in to comment.