diff --git a/CHANGELOG.md b/CHANGELOG.md index 81c14e3..146d8a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ _No unreleased changes yet_ _No unreleased changes yet_ ### Fixed -_No unreleased changes yet_ +- **Card hover preview in theme browser (#70)**: Example card thumbnails in the theme detail/browser page were showing the wrong card image (a fuzzy search for "Card") when hovered. The `` elements inside `.ex-card` containers lacked `data-card-name` attributes, so the hover system fell back to the literal string "Card". Added `data-card-name`, `data-original-name`, `data-role`, and `data-tags` to example card `` elements in `detail_fragment.html` to match the existing commander image pattern. ### Removed _No unreleased changes yet_ diff --git a/RELEASE_NOTES_TEMPLATE.md b/RELEASE_NOTES_TEMPLATE.md index 5d67c30..fd05d5d 100644 --- a/RELEASE_NOTES_TEMPLATE.md +++ b/RELEASE_NOTES_TEMPLATE.md @@ -8,7 +8,7 @@ _No unreleased changes yet_ _No unreleased changes yet_ ### Fixed -_No unreleased changes yet_ +- Card hover preview now works correctly for example cards in the theme browser ### Removed _No unreleased changes yet_ diff --git a/code/web/templates/themes/detail_fragment.html b/code/web/templates/themes/detail_fragment.html index 8312449..80fcffd 100644 --- a/code/web/templates/themes/detail_fragment.html +++ b/code/web/templates/themes/detail_fragment.html @@ -185,7 +185,7 @@ {% for c in theme.example_cards %} {% set base_c = (c.split(' - Synergy (')[0] if ' - Synergy (' in c else c) %}
- {{ c }} image + {{ c }} image
{{ c }}