-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove 'Open full image' link; make entire image clickable; turn scre…
…enshots into flex box for better scaling. (#29)
- Loading branch information
Thomas Thorogood
authored
Jan 13, 2022
1 parent
3f40565
commit 347a320
Showing
4 changed files
with
34 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "uw-webdriver-recorder" | |
# This version string is typically managed by the CI workflow, | ||
# and is changed anytime `poetry version [new version]` is run. | ||
# Do not revert this manually. | ||
version = "5.0.0" | ||
version = "5.0.1" | ||
description = "A pytest plugin for recording screenshots of selenium interactions, with other convenient features too." | ||
authors = ["Tom Thorogood <[email protected]>"] | ||
license = "Apache Software License 3.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<div class="row row-cols-1 row-cols-md-4 g-4"> | ||
<div class="d-flex flex-wrap justify-items-evenly"> | ||
{% for png in result.pngs %} | ||
<div class="col"> | ||
<div class="card text-center screenshot"> | ||
<img class="card-img-top img-thumbnail mx-auto" | ||
src="{{ png.url }}" | ||
alt='Screenshot #{{ loop.index }} for test "{{ result.test_name }}"' | ||
> | ||
<div class="card-title snap-caption {% if png.is_error %}text-danger{% | ||
endif %}"> | ||
{{ png.caption or " " }} | ||
<div class="p-2 flex-fill"> | ||
<a href="{{ png.url }}" target="_blank" class="linked-card"> | ||
<div class="card text-center screenshot"> | ||
<img class="card-img-top img-thumbnail mx-auto" | ||
loading="lazy" | ||
src="{{ png.url }}" | ||
alt='[loading] Screenshot #{{ loop.index }} for test "{{ result .test_name }}"' > | ||
{% if png.caption %} | ||
<div | ||
class="card-footer snap-caption {% if png.is_error %}text-danger{% endif %}"> | ||
{{ png.caption }} | ||
</div> | ||
{% endif %} | ||
</div> | ||
<div class="card-footer image-link"> | ||
<a href="{{ png.url }}" target="_blank">Open full image</a> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
{% endfor %} | ||
</div> |